From e14903cfb23fccaeec99137168075774c40bdf75 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Tue, 26 Nov 2024 22:10:54 -0500 Subject: [PATCH] Internals: Fix null skipRef for consistency. No functional change intended. --- src/V3AstNodeDType.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/V3AstNodeDType.h b/src/V3AstNodeDType.h index 2e0c658d5..4c0aeae79 100644 --- a/src/V3AstNodeDType.h +++ b/src/V3AstNodeDType.h @@ -1069,7 +1069,7 @@ public: // METHODS bool similarDType(const AstNodeDType* samep) const override { return this == samep; } AstBasicDType* basicp() const override VL_MT_STABLE { return nullptr; } - AstNodeDType* skipRefp() const override VL_MT_STABLE { return nullptr; } + AstNodeDType* skipRefp() const override VL_MT_STABLE { return (AstNodeDType*)this; } // cppcheck-suppress csyleCast AstNodeDType* skipRefToConstp() const override { return (AstNodeDType*)this; } // cppcheck-suppress csyleCast