Add early return

Signed-off-by: Ryszard Rozak <rrozak@antmicro.com>
This commit is contained in:
Ryszard Rozak 2026-02-24 11:47:24 +01:00
parent efb3d29f05
commit dbb57431dc
1 changed files with 1 additions and 0 deletions

View File

@ -290,6 +290,7 @@ private:
}
static AstNodeDType* getEnVarpDTypep(AstVar* const varp) {
AstNodeDType* const origDTypep = varp->dtypep()->skipRefp();
if (origDTypep->user1p()) return VN_AS(origDTypep->user1p(), NodeDType);
const size_t unpackElemNum = checkIfDTypeSupportedRecurse(origDTypep, varp);
if (unpackElemNum > ELEMENTS_MAX) {
varp->v3warn(E_UNSUPPORTED, "Unsupported: Force of variable with "