From 7857a6e921cddd08fd119835539bc679bb824b37 Mon Sep 17 00:00:00 2001 From: Jakob Stoklund Olesen Date: Thu, 4 Jul 2013 04:32:35 +0000 Subject: [PATCH] Live-in copies go *after* EH_LABELs. This will soon be tested by exception handling working at all. llvm-svn: 185615 --- lib/CodeGen/MachineBasicBlock.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();