mirror of
https://github.com/verilator/verilator.git
synced 2025-01-09 08:07:46 +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) {
|
void checkDType(AstNodeDType* nodep) {
|
||||||
if (!nodep->generic() // Don't remove generic types
|
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);
|
m_varEtcsp.push_back(nodep);
|
||||||
}
|
}
|
||||||
if (AstNode* subnodep = nodep->virtRefDTypep()) subnodep->user1Inc();
|
if (AstNode* subnodep = nodep->virtRefDTypep()) subnodep->user1Inc();
|
||||||
@ -144,12 +146,6 @@ private:
|
|||||||
nodep->packagep()->user1Inc();
|
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*) {
|
virtual void visit(AstNodeDType* nodep, AstNUser*) {
|
||||||
nodep->iterateChildren(*this);
|
nodep->iterateChildren(*this);
|
||||||
checkDType(nodep);
|
checkDType(nodep);
|
||||||
|
@ -226,7 +226,7 @@ sub parameter {
|
|||||||
push @Opt_Driver_Verilator_Flags, $param;
|
push @Opt_Driver_Verilator_Flags, $param;
|
||||||
$_Parameter_Next_Level = $param;
|
$_Parameter_Next_Level = $param;
|
||||||
}
|
}
|
||||||
elsif ($param =~ /^-?-W/) {
|
elsif ($param =~ /^-?(-W||-debug-check)/) {
|
||||||
push @Opt_Driver_Verilator_Flags, $param;
|
push @Opt_Driver_Verilator_Flags, $param;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
Loading…
Reference in New Issue
Block a user