mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 10:03:44 +02:00
Internals: In AstBasicDType avoid use of Range for constants. No functional change.
This commit is contained in:
+3
-3
@@ -453,9 +453,9 @@ void EmitCSyms::emitSymImp() {
|
||||
string bounds;
|
||||
if (AstBasicDType* basicp = varp->basicp()) {
|
||||
// Range is always first, it's not in "C" order
|
||||
if (basicp->rangep()) {
|
||||
bounds += " ,"; bounds += cvtToStr(basicp->rangep()->msbConst());
|
||||
bounds += ","; bounds += cvtToStr(basicp->rangep()->lsbConst());
|
||||
if (basicp->isRanged()) {
|
||||
bounds += " ,"; bounds += cvtToStr(basicp->msb());
|
||||
bounds += ","; bounds += cvtToStr(basicp->lsb());
|
||||
dim++;
|
||||
}
|
||||
for (AstNodeDType* dtypep=varp->dtypep(); dtypep; ) {
|
||||
|
||||
Reference in New Issue
Block a user