mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-03 18:29:08 +00:00
[GlobalISel] Slightly clean up DBG_VALUE FP build code.
I messed up my rebases leading to r297200, and ended up with stale (but working) code. Fix it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297205 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c3e4809203
commit
027104480a
@ -138,8 +138,7 @@ MachineInstrBuilder MachineIRBuilder::buildConstDbgValue(const Constant &C,
|
||||
else
|
||||
MIB.addImm(CI->getZExtValue());
|
||||
} else if (auto *CFP = dyn_cast<ConstantFP>(&C)) {
|
||||
assert(isa<ConstantFP>(C) && "Unexpected constant dbg value");
|
||||
MIB.addFPImm(&cast<ConstantFP>(C));
|
||||
MIB.addFPImm(CFP);
|
||||
} else {
|
||||
// Insert %noreg if we didn't find a usable constant and had to drop it.
|
||||
MIB.addReg(0U);
|
||||
|
Loading…
Reference in New Issue
Block a user