Skip to content

Commit 34d91b6

Browse files
committed
Remove unnecessary variable.
1 parent faf338e commit 34d91b6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2647,9 +2647,8 @@ void CombinerHelper::replaceInstWithConstant(MachineInstr &MI, APInt C) {
26472647

26482648
void CombinerHelper::replaceInstWithFConstant(MachineInstr &MI, ConstantFP *CFP) {
26492649
assert(MI.getNumDefs() == 1 && "Expected only one def?");
2650-
APFloat C = CFP->getValueAPF();
26512650
Builder.setInstr(MI);
2652-
Builder.buildFConstant(MI.getOperand(0), C);
2651+
Builder.buildFConstant(MI.getOperand(0), CFP->getValueAPF());
26532652
MI.eraseFromParent();
26542653
}
26552654

0 commit comments

Comments
 (0)