Fix struct trace coredump from recent commit.

This commit is contained in:
Wilson Snyder 2013-12-21 06:46:48 -05:00
parent b5f5b1fdf9
commit daf19e241e
2 changed files with 4 additions and 8 deletions

View File

@ -103,7 +103,9 @@ private:
}
void checkDType(AstNodeDType* nodep) {
if (!nodep->generic() // Don't remove generic types
&& m_elimDTypes) { // dtypes stick around until post-widthing
&& m_elimDTypes // dtypes stick around until post-widthing
&& !nodep->castMemberDType() // Keep member names iff upper type exists
) {
m_varEtcsp.push_back(nodep);
}
if (AstNode* subnodep = nodep->virtRefDTypep()) subnodep->user1Inc();
@ -144,12 +146,6 @@ private:
nodep->packagep()->user1Inc();
}
}
virtual void visit(AstMemberDType* nodep, AstNUser*) {
// Keep member names iff upper type exists
nodep->iterateChildren(*this);
// No checkDType(nodep)
checkAll(nodep);
}
virtual void visit(AstNodeDType* nodep, AstNUser*) {
nodep->iterateChildren(*this);
checkDType(nodep);

View File

@ -226,7 +226,7 @@ sub parameter {
push @Opt_Driver_Verilator_Flags, $param;
$_Parameter_Next_Level = $param;
}
elsif ($param =~ /^-?-W/) {
elsif ($param =~ /^-?(-W||-debug-check)/) {
push @Opt_Driver_Verilator_Flags, $param;
}
else {