Internals: Fix compares to null, part of bug1030. No functional change intended.

This commit is contained in:
Wilson Snyder
2016-02-02 21:02:00 -05:00
parent 850100c9c2
commit d56179df17
7 changed files with 48 additions and 34 deletions
+2 -4
View File
@@ -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;
}