From 61394bdece465c5242ed545f68bd105b55c2af7d Mon Sep 17 00:00:00 2001 From: Todd Strader Date: Wed, 1 Apr 2020 14:38:37 -0400 Subject: [PATCH] const var fix --- src/V3Ast.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/V3Ast.h b/src/V3Ast.h index b5ac1a02a..798778589 100644 --- a/src/V3Ast.h +++ b/src/V3Ast.h @@ -2095,8 +2095,8 @@ public: static int uniqueNumInc() { return ++s_uniqueNum; } const char* charIQWN() const { return (isString() ? "N" : isWide() ? "W" : isQuad() ? "Q" : "I"); } bool matching(const AstNodeDType* typep) const { - if (VN_IS(typep, RefDType)) { - // Follow RefDTypes + if (VN_IS(typep, RefDType) || VN_IS(typep, ConstDType)) { + // Unwrap type wrappers return typep->match(this); } else { return match(typep);