[llvm] [llvm][DebugInfo] Emit 0/1 for constant boolean values (PR #151225)
Michael Buch via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 22 01:49:28 PDT 2025
================
@@ -109,8 +109,10 @@ MachineInstrBuilder MachineIRBuilder::buildConstDbgValue(const Constant &C,
if (auto *CI = dyn_cast<ConstantInt>(NumericConstant)) {
if (CI->getBitWidth() > 64)
MIB.addCImm(CI);
- else
+ else if (CI->getBitWidth() == 1)
----------------
Michael137 wrote:
Why are we modifying `GlobalISel`? I think it was working correctly there already right?
https://github.com/llvm/llvm-project/pull/151225
More information about the llvm-commits
mailing list