const var fix

This commit is contained in:
Todd Strader 2020-04-01 14:38:37 -04:00
parent 240c4e98ac
commit 61394bdece

View File

@ -2095,8 +2095,8 @@ public:
static int uniqueNumInc() { return ++s_uniqueNum; } static int uniqueNumInc() { return ++s_uniqueNum; }
const char* charIQWN() const { return (isString() ? "N" : isWide() ? "W" : isQuad() ? "Q" : "I"); } const char* charIQWN() const { return (isString() ? "N" : isWide() ? "W" : isQuad() ? "Q" : "I"); }
bool matching(const AstNodeDType* typep) const { bool matching(const AstNodeDType* typep) const {
if (VN_IS(typep, RefDType)) { if (VN_IS(typep, RefDType) || VN_IS(typep, ConstDType)) {
// Follow RefDTypes // Unwrap type wrappers
return typep->match(this); return typep->match(this);
} else { } else {
return match(typep); return match(typep);