[clang] [lldb] [llvm] [APInt] Fix APInt constructions where value does not fit bitwidth (NFCI) (PR #80309)
Nikita Popov via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 15 01:26:50 PDT 2024
================
@@ -1159,7 +1159,9 @@ class ARMOperand : public MCParsedAsmOperand {
if (!isImm()) return false;
const MCConstantExpr *CE = dyn_cast<MCConstantExpr>(getImm());
if (!CE) return false;
----------------
nikic wrote:
Not quite, but this put me on the right path. I added a check for `isUInt<32>` and dropped the signed flag.
https://github.com/llvm/llvm-project/pull/80309
More information about the cfe-commits
mailing list