mirror of
https://github.com/verilator/verilator.git
synced 2026-10-07 18:42:58 +02:00
Internals: Fix compares to null, part of bug1030. No functional change intended.
This commit is contained in:
+2
-4
@@ -137,9 +137,7 @@ public:
|
||||
bool prelim() const { return m_stage & PRELIM; }
|
||||
bool final() const { return m_stage & FINAL; }
|
||||
void dump(ostream& str) const {
|
||||
if (!this) {
|
||||
str<<" VUP(NULL)";
|
||||
} else if (!m_dtypep) {
|
||||
if (!m_dtypep) {
|
||||
str<<" VUP(s="<<m_stage<<",self)";
|
||||
} else {
|
||||
str<<" VUP(s="<<m_stage<<",dt="<<(void*)dtypep()<<")";
|
||||
@@ -147,7 +145,7 @@ public:
|
||||
}
|
||||
};
|
||||
ostream& operator<<(ostream& str, const WidthVP* vup) {
|
||||
vup->dump(str);
|
||||
if (vup) vup->dump(str);
|
||||
return str;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user