[llvm-commits] [llvm] r135015 - /llvm/trunk/lib/Target/X86/X86FrameLowering.cpp
Bill Wendling
isanbard at gmail.com
Tue Jul 12 17:23:39 PDT 2011
Author: void
Date: Tue Jul 12 19:23:39 2011
New Revision: 135015
URL: http://llvm.org/viewvc/llvm-project?rev=135015&view=rev
Log:
Assign variable before we test it.
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=135015&r1=135014&r2=135015&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86FrameLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86FrameLowering.cpp Tue Jul 12 19:23:39 2011
@@ -1073,13 +1073,12 @@
if (Src.isReg() && Src.getReg() == MachineLocation::VirtualFP) {
// DW_CFA_def_cfa_register
assert(FramePointerReg == -1 && "Defining more than one frame pointer?");
+ FramePointerReg = Dst.getReg();
if (TRI->getLLVMRegNum(FramePointerReg, IsEH) != X86::EBP &&
TRI->getLLVMRegNum(FramePointerReg, IsEH) != X86::RBP)
// The frame pointer isn't EBP/RBP. Cannot make unwind information
// compact.
return 0;
-
- FramePointerReg = Dst.getReg();
continue;
}
More information about the llvm-commits
mailing list