Skip to content

Commit 0d6aedf

Browse files
PiJoulesaugusto2112
authored andcommitted
Reapply "[llvm] Fix assertion error where we didn't check fixed point… (llvm#82412)
… types." (llvm#82285) This reverts commit d9f9775. The test was missing a `REQUIRES: object-emission`. (cherry picked from commit 0b2b91e)
1 parent 83a2488 commit 0d6aedf

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,12 +226,15 @@ bool DebugHandlerBase::isUnsignedDIType(const DIType *Ty) {
226226
Encoding == dwarf::DW_ATE_float || Encoding == dwarf::DW_ATE_UTF ||
227227
Encoding == dwarf::DW_ATE_boolean ||
228228
Encoding == dwarf::DW_ATE_complex_float ||
229+
Encoding == dwarf::DW_ATE_signed_fixed ||
230+
Encoding == dwarf::DW_ATE_unsigned_fixed ||
229231
(Ty->getTag() == dwarf::DW_TAG_unspecified_type &&
230232
Ty->getName() == "decltype(nullptr)")) &&
231233
"Unsupported encoding");
232234
return Encoding == dwarf::DW_ATE_unsigned ||
233235
Encoding == dwarf::DW_ATE_unsigned_char ||
234236
Encoding == dwarf::DW_ATE_UTF || Encoding == dwarf::DW_ATE_boolean ||
237+
Encoding == llvm::dwarf::DW_ATE_unsigned_fixed ||
235238
Ty->getTag() == dwarf::DW_TAG_unspecified_type;
236239
}
237240
// FIXME: the signedness should come from the expression where the type is

0 commit comments

Comments
 (0)