Skip to content

Commit 796ae24

Browse files
committed
This was a fix suggested by Kiran Chandramohan (ARM) to force the subrange values to be signed integral values.
1 parent 1b7b2fc commit 796ae24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/CodeGen/AsmPrinter/DwarfUnit.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1441,12 +1441,12 @@ void DwarfUnit::constructFortranSubrangeDIE(DIE &Buffer,
14411441

14421442
if (!SR->getLowerBound()) {
14431443
int64_t BVC = SR->getCLowerBound();
1444-
addSInt(DW_Subrange, dwarf::DW_AT_lower_bound, None, BVC);
1444+
addSInt(DW_Subrange, dwarf::DW_AT_lower_bound, dwarf::DW_FORM_sdata, BVC);
14451445
}
14461446

14471447
if ((!SR->getUpperBound()) && (!SR->noUpperBound())) {
14481448
int64_t BVC = SR->getCUpperBound();
1449-
addSInt(DW_Subrange, dwarf::DW_AT_upper_bound, None, BVC);
1449+
addSInt(DW_Subrange, dwarf::DW_AT_upper_bound, dwarf::DW_FORM_sdata, BVC);
14501450
}
14511451
}
14521452

0 commit comments

Comments
 (0)