diff options
author | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-07-04 04:32:35 +0000 |
---|---|---|
committer | Jakob Stoklund Olesen <stoklund@2pi.dk> | 2013-07-04 04:32:35 +0000 |
commit | bbbb53262a87b2bf861b2c333270b8f50a562321 (patch) | |
tree | a6c23905b17a3df6f7d6f3577b2785a41923ef80 /llvm/lib/CodeGen/MachineBasicBlock.cpp | |
parent | 6d6676b9d1e37dba5439f42f5e282f4fca58f30a (diff) | |
download | bcm5719-llvm-bbbb53262a87b2bf861b2c333270b8f50a562321.tar.gz bcm5719-llvm-bbbb53262a87b2bf861b2c333270b8f50a562321.zip |
Live-in copies go *after* EH_LABELs.
This will soon be tested by exception handling working at all.
llvm-svn: 185615
Diffstat (limited to 'llvm/lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineBasicBlock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp index 7bb0d32e6b1..56332717128 100644 --- a/llvm/lib/CodeGen/MachineBasicBlock.cpp +++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp @@ -351,7 +351,7 @@ MachineBasicBlock::addLiveIn(unsigned PhysReg, const TargetRegisterClass *RC) { "Only the entry block and landing pads can have physreg live ins"); bool LiveIn = isLiveIn(PhysReg); - iterator I = getFirstNonPHI(), E = end(); + iterator I = SkipPHIsAndLabels(begin()), E = end(); MachineRegisterInfo &MRI = getParent()->getRegInfo(); const TargetInstrInfo &TII = *getParent()->getTarget().getInstrInfo(); |