forked from OSchip/llvm-project
[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. llvm-svn: 297205
This commit is contained in:
parent
91266b4752
commit
adce3ee219
|
@ -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