From 3edbeb890294f42ea8a1078e1455003b43e65903 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Tue, 3 Nov 2009 06:49:45 -0500 Subject: [PATCH] Internals: Start cleaning up dtype()-> in AstVar --- src/V3WidthSel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/V3WidthSel.cpp b/src/V3WidthSel.cpp index 7ffb5d233..c0f2cbea0 100644 --- a/src/V3WidthSel.cpp +++ b/src/V3WidthSel.cpp @@ -140,7 +140,7 @@ private: if (!varp->dtypep()->rangep()->msbp()->castConst() || !varp->dtypep()->rangep()->lsbp()->castConst()) varp->v3fatalSrc("Non-constant variable range; errored earlier"); // in constifyParam(varp) - if (varp->littleEndian()) { + if (varp->dtypep()->rangep()->littleEndian()) { // reg [1:3] was swapped to [3:1] (lsbEndianedp==3) and needs a SUB(3,under) AstNode* newp = newSubNeg(varp->msb(), underp); return newp;