diff options
author | PiJoules <6019989+PiJoules@users.noreply.github.com> | 2024-02-15 23:29:20 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-15 23:29:20 -0800 |
commit | 1807e02b8c280af10628538d69e9511d3df3ed5f (patch) | |
tree | 15397ca218afb5ece524b16f03952c38f031aab3 /llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp | |
parent | 6abf5e5be2be8834183163f1db33a6cff696f13e (diff) | |
download | llvm-1807e02b8c280af10628538d69e9511d3df3ed5f.zip llvm-1807e02b8c280af10628538d69e9511d3df3ed5f.tar.gz llvm-1807e02b8c280af10628538d69e9511d3df3ed5f.tar.bz2 |
[llvm] Fix assertion error where we didn't check fixed point types. (#80757)
This fixes https://github.com/llvm/llvm-project/issues/81555
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DebugHandlerBase.cpp | 3 |
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; } |