From 8e1c0b08524e2e0ac49cfff449c6d8b4c4f3e612 Mon Sep 17 00:00:00 2001 From: github action Date: Thu, 21 Dec 2023 12:49:55 +0000 Subject: [PATCH] Apply 'make format' --- src/V3Width.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/V3Width.cpp b/src/V3Width.cpp index 20aafebc8..44d3abc3e 100644 --- a/src/V3Width.cpp +++ b/src/V3Width.cpp @@ -2941,7 +2941,7 @@ class WidthVisitor final : public VNVisitor { methodCallQueue(nodep, adtypep); } else if (AstClassRefDType* const adtypep = VN_CAST(fromDtp, ClassRefDType)) { methodCallClass(nodep, adtypep); - } else if(AstIfaceRefDType* const adtypep = VN_CAST(fromDtp, IfaceRefDType)) { + } else if (AstIfaceRefDType* const adtypep = VN_CAST(fromDtp, IfaceRefDType)) { methodCallIfaceRef(nodep, adtypep); } else if (AstUnpackArrayDType* const adtypep = VN_CAST(fromDtp, UnpackArrayDType)) { methodCallUnpack(nodep, adtypep); @@ -3552,11 +3552,11 @@ class WidthVisitor final : public VNVisitor { nodep->classOrPackagep(ifacep); if (VN_IS(ftaskp, Task)) nodep->dtypeSetVoid(); processFTaskRefArgs(nodep); + } + return; } - return; - } - nodep->v3error( "Member reference from interface to " << nodep->prettyNameQ() - << " is not referencing a valid task or function "); + nodep->v3error("Member reference from interface to " + << nodep->prettyNameQ() << " is not referencing a valid task or function "); } void methodCallClass(AstMethodCall* nodep, AstClassRefDType* adtypep) { // No need to width-resolve the class, as it was done when we did the child