mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Strengthen AstNode types to AstNodeExpr
Declare every AstNode children and variables as AstNodeExpr where we statically know this is the appropriate sub-type.
This commit is contained in:
+3
-3
@@ -174,8 +174,8 @@ class ForceConvertVisitor final : public VNVisitor {
|
||||
pushDeletep(nodep);
|
||||
|
||||
FileLine* const flp = nodep->fileline();
|
||||
AstNode* const lhsp = nodep->lhsp(); // The LValue we are forcing
|
||||
AstNode* const rhsp = nodep->rhsp(); // The value we are forcing it to
|
||||
AstNodeExpr* const lhsp = nodep->lhsp(); // The LValue we are forcing
|
||||
AstNodeExpr* const rhsp = nodep->rhsp(); // The value we are forcing it to
|
||||
|
||||
// Set corresponding enable signals to ones
|
||||
V3Number ones{lhsp, lhsp->width()};
|
||||
@@ -210,7 +210,7 @@ class ForceConvertVisitor final : public VNVisitor {
|
||||
pushDeletep(nodep);
|
||||
|
||||
FileLine* const flp = nodep->fileline();
|
||||
AstNode* const lhsp = nodep->lhsp(); // The LValue we are releasing
|
||||
AstNodeExpr* const lhsp = nodep->lhsp(); // The LValue we are releasing
|
||||
|
||||
// Set corresponding enable signals to zero
|
||||
V3Number zero{lhsp, lhsp->width()};
|
||||
|
||||
Reference in New Issue
Block a user