summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineBasicBlock.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2013-07-04 04:32:35 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2013-07-04 04:32:35 +0000
commitbbbb53262a87b2bf861b2c333270b8f50a562321 (patch)
treea6c23905b17a3df6f7d6f3577b2785a41923ef80 /llvm/lib/CodeGen/MachineBasicBlock.cpp
parent6d6676b9d1e37dba5439f42f5e282f4fca58f30a (diff)
downloadbcm5719-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.cpp2
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();
OpenPOWER on IntegriCloud