mirror of
https://github.com/verilator/verilator.git
synced 2025-01-08 15:47:36 +00:00
Fix struct trace coredump from recent commit.
This commit is contained in:
parent
b5f5b1fdf9
commit
daf19e241e
@ -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);
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user