mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Internals: cppcheck cleanups. No functional change.
This commit is contained in:
+6
-6
@@ -451,12 +451,12 @@ class TaskVisitor final : public VNVisitor {
|
||||
AstNodeExpr* postRhsp = new AstVarRef{newvscp->fileline(), newvscp, VAccess::READ};
|
||||
if (AstResizeLValue* soutPinp = VN_CAST(outPinp, ResizeLValue)) {
|
||||
outPinp = soutPinp->lhsp();
|
||||
if (AstNodeUniop* soutPinp = VN_CAST(outPinp, Extend)) {
|
||||
outPinp = soutPinp->lhsp();
|
||||
} else if (AstNodeUniop* soutPinp = VN_CAST(outPinp, ExtendS)) {
|
||||
outPinp = soutPinp->lhsp();
|
||||
} else if (AstSel* soutPinp = VN_CAST(outPinp, Sel)) {
|
||||
outPinp = soutPinp->fromp();
|
||||
if (AstNodeUniop* aoutPinp = VN_CAST(outPinp, Extend)) {
|
||||
outPinp = aoutPinp->lhsp();
|
||||
} else if (AstNodeUniop* aoutPinp = VN_CAST(outPinp, ExtendS)) {
|
||||
outPinp = aoutPinp->lhsp();
|
||||
} else if (AstSel* aoutPinp = VN_CAST(outPinp, Sel)) {
|
||||
outPinp = aoutPinp->fromp();
|
||||
} else {
|
||||
outPinp->v3fatalSrc("Inout pin resizing should have had extend or select");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user