mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Use VN_AS wherever possible and obvious. No functional change.
This commit is contained in:
+1
-1
@@ -313,7 +313,7 @@ private:
|
||||
// Cleanup
|
||||
VL_DO_DANGLING(rhsp->deleteTree(), rhsp);
|
||||
} else {
|
||||
AstNodeIf* const ifp = VN_CAST(currp, NodeIf);
|
||||
AstNodeIf* const ifp = VN_AS(currp, NodeIf);
|
||||
UASSERT_OBJ(ifp, currp, "Must be AstNodeIf");
|
||||
// Move branch contents under new if
|
||||
if (AstNode* const listp = ifp->ifsp()) {
|
||||
|
||||
Reference in New Issue
Block a user