Fix CDC report causing out-of-memory

This commit is contained in:
Wilson Snyder 2013-02-02 15:40:59 -05:00
parent ffb187ae15
commit 09edb467f6

View File

@ -499,10 +499,10 @@ class EmitVBaseVisitor : public EmitCBaseVisitor {
}
virtual void visit(AstConstDType* nodep, AstNUser*) {
putfs(nodep,"const ");
nodep->subDTypep()->iterateAndNext(*this);
nodep->subDTypep()->accept(*this);
}
virtual void visit(AstNodeArrayDType* nodep, AstNUser*) {
nodep->subDTypep()->iterateAndNext(*this);
nodep->subDTypep()->accept(*this);
nodep->rangep()->iterateAndNext(*this);
}
virtual void visit(AstNodeClassDType* nodep, AstNUser*) {
@ -513,7 +513,7 @@ class EmitVBaseVisitor : public EmitCBaseVisitor {
puts("}");
}
virtual void visit(AstMemberDType* nodep, AstNUser*) {
nodep->subDTypep()->iterateAndNext(*this);
nodep->subDTypep()->accept(*this);
puts(" ");
puts(nodep->name());
puts("}");