aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
diff options
context:
space:
mode:
authorPiJoules <6019989+PiJoules@users.noreply.github.com>2024-02-20 12:09:00 -0800
committerGitHub <noreply@github.com>2024-02-20 12:09:00 -0800
commit0b2b91ee9cf92d08e5eec159545ce4147b8d908e (patch)
treef3c678f41b9fcdf06864aafddb5ca0fbcc649778 /llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
parentf740366fa68d3cfceda7efe2d573348253fbb1e9 (diff)
downloadllvm-0b2b91ee9cf92d08e5eec159545ce4147b8d908e.zip
llvm-0b2b91ee9cf92d08e5eec159545ce4147b8d908e.tar.gz
llvm-0b2b91ee9cf92d08e5eec159545ce4147b8d908e.tar.bz2
Reapply "[llvm] Fix assertion error where we didn't check fixed point… (#82412)
… types." (#82285) This reverts commit d9f9775ac6289271d57671c55166fa0cad61075b. The test was missing a `REQUIRES: object-emission`.
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp b/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
index eb2d992..f00ff15 100644
--- a/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
+++ b/llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp
@@ -224,12 +224,15 @@ bool DebugHandlerBase::isUnsignedDIType(const DIType *Ty) {
Encoding == dwarf::DW_ATE_float || Encoding == dwarf::DW_ATE_UTF ||
Encoding == dwarf::DW_ATE_boolean ||
Encoding == dwarf::DW_ATE_complex_float ||
+ Encoding == dwarf::DW_ATE_signed_fixed ||
+ Encoding == dwarf::DW_ATE_unsigned_fixed ||
(Ty->getTag() == dwarf::DW_TAG_unspecified_type &&
Ty->getName() == "decltype(nullptr)")) &&
"Unsupported encoding");
return Encoding == dwarf::DW_ATE_unsigned ||
Encoding == dwarf::DW_ATE_unsigned_char ||
Encoding == dwarf::DW_ATE_UTF || Encoding == dwarf::DW_ATE_boolean ||
+ Encoding == llvm::dwarf::DW_ATE_unsigned_fixed ||
Ty->getTag() == dwarf::DW_TAG_unspecified_type;
}