From 4573e04488f93e5aca461dc012c37fced0f768f6 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Tue, 13 Aug 2024 14:39:37 -0400 Subject: [PATCH] Fix segfault after unsupported member call (#5359). --- src/V3Width.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/V3Width.cpp b/src/V3Width.cpp index 48513bb32..49197408e 100644 --- a/src/V3Width.cpp +++ b/src/V3Width.cpp @@ -3174,6 +3174,7 @@ class WidthVisitor final : public VNVisitor { << nodep->fromp()->prettyTypeName() << "' which is a '" << nodep->fromp()->dtypep()->prettyTypeName() << "'"); + nodep->dtypep(m_vup->dtypeNullp()); } } AstWith* methodWithArgument(AstNodeFTaskRef* nodep, bool required, bool arbReturn,