Fix internal error on xrefs into unrolled functions, bug1387.

This commit is contained in:
Wilson Snyder
2019-01-06 17:38:27 -05:00
parent aaf5b7c2c0
commit 62a7d713a7
15 changed files with 96 additions and 15 deletions
+4
View File
@@ -1256,6 +1256,10 @@ private:
nodep->v3fatalSrc("For statements should have been converted to while statements in V3Begin.cpp");
}
virtual void visit(AstNodeStmt* nodep) {
if (!nodep->isStatement()) {
iterateChildren(nodep);
return;
}
m_insMode = IM_BEFORE;
m_insStmtp = nodep;
iterateChildren(nodep);