Browse Source

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
Jakob Stoklund Olesen 12 years ago
parent
commit
c982e14458
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/CodeGen/MachineBasicBlock.cpp

+ 1 - 1
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();