mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-20 18:52:46 +00:00
Assign variable before we test it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135015 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f4f53f08f5
commit
3641e81172
@ -1073,13 +1073,12 @@ getCompactUnwindEncoding(ArrayRef<MCCFIInstruction> Instrs,
|
||||
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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user