Skip to content

Commit

Permalink
Do not emit ranges for integer_atom_type
Browse files Browse the repository at this point in the history
Signed-off-by: Bartłomiej Chmiel <[email protected]>
  • Loading branch information
b-chmiel committed Jan 24, 2025
1 parent e3a1e42 commit 5381cff
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/V3EmitV.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -611,6 +611,9 @@ class EmitVBaseVisitorConst VL_NOT_FINAL : public EmitCBaseVisitorConst {
void visit(AstBasicDType* nodep) override {
putfs(nodep, nodep->prettyName());
if (nodep->isSigned()) putfs(nodep, " signed");
// Do not emit ranges for integer atoms.
if (nodep->keyword().isIntNumeric() && !nodep->keyword().isBitLogic()) return;

if (nodep->rangep()) {
puts(" ");
iterateAndNextConstNull(nodep->rangep());
Expand Down

0 comments on commit 5381cff

Please sign in to comment.