summaryrefslogtreecommitdiff
path: root/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
commitc982e14458ab098dcc08da5a3e8a88f07018dfbd (patch)
tree9a9266e08d67f472071d74ca166eae228bba3b55 /lib/CodeGen/MachineBasicBlock.cpp
parent08bdfe26a5e22425699a53e9ad3ee287b0c9b1b9 (diff)
downloadllvm-c982e14458ab098dcc08da5a3e8a88f07018dfbd.tar.gz
llvm-c982e14458ab098dcc08da5a3e8a88f07018dfbd.tar.bz2
llvm-c982e14458ab098dcc08da5a3e8a88f07018dfbd.tar.xz
Live-in copies go *after* EH_LABELs.
This will soon be tested by exception handling working at all. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185615 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineBasicBlock.cpp')
-rw-r--r--lib/CodeGen/MachineBasicBlock.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineBasicBlock.cpp b/lib/CodeGen/MachineBasicBlock.cpp
index 7bb0d32e6b..5633271712 100644
--- a/lib/CodeGen/MachineBasicBlock.cpp
+++ b/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();