[llvm] r223773 - Removing an unused variable to silence a -Wunused-but-set-variable warning. NFC.
Aaron Ballman
aaron at aaronballman.com
Tue Dec 9 05:20:12 PST 2014
Author: aaronballman
Date: Tue Dec 9 07:20:11 2014
New Revision: 223773
URL: http://llvm.org/viewvc/llvm-project?rev=223773&view=rev
Log:
Removing an unused variable to silence a -Wunused-but-set-variable warning. NFC.
Modified:
llvm/trunk/lib/Target/X86/X86FrameLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86FrameLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86FrameLowering.cpp?rev=223773&r1=223772&r2=223773&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86FrameLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86FrameLowering.cpp Tue Dec 9 07:20:11 2014
@@ -1892,13 +1892,11 @@ convertArgMovsToPushes(MachineFunction &
for (auto MMI = MovMap.rbegin(), MME = MovMap.rend(); MMI != MME; ++MMI) {
MachineBasicBlock::iterator MOV = MMI->second;
MachineOperand PushOp = MOV->getOperand(X86::AddrNumOperands);
- int PushOpcode;
if (MOV->getOpcode() == X86::MOV32mi) {
int64_t Val = PushOp.getImm();
BuildMI(MBB, Call, DL, TII.get(getPUSHiOpcode(false, Val)))
.addImm(Val);
} else {
- PushOpcode = X86::PUSH32r;
BuildMI(MBB, Call, DL, TII.get(X86::PUSH32r))
.addReg(PushOp.getReg());
}
More information about the llvm-commits
mailing list