From: Jakob Stoklund Olesen Date: Thu, 4 Jul 2013 04:32:35 +0000 (+0000) Subject: Live-in copies go *after* EH_LABELs. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c982e14458ab098dcc08da5a3e8a88f07018dfbd;p=oota-llvm.git 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 --- diff --git a/lib/CodeGen/MachineBasicBlock.cpp b/lib/CodeGen/MachineBasicBlock.cpp index 7bb0d32e6b1..56332717128 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();