From 7360280e5cc2f03a049425e190f2d6d2d3676558 Mon Sep 17 00:00:00 2001 From: Pete Cooper Date: Fri, 14 Mar 2014 02:28:05 +0000 Subject: Fix issue with r203865. The old behaviour would get a MachineOperand then find the MI for the bundle the MI was in. The new behaviour was failing to get the parent bundle and instead just used the MI from the MachineOperand llvm-svn: 203883 --- llvm/lib/CodeGen/InlineSpiller.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/InlineSpiller.cpp') diff --git a/llvm/lib/CodeGen/InlineSpiller.cpp b/llvm/lib/CodeGen/InlineSpiller.cpp index 64211c8d31b..5bf7b112869 100644 --- a/llvm/lib/CodeGen/InlineSpiller.cpp +++ b/llvm/lib/CodeGen/InlineSpiller.cpp @@ -1196,7 +1196,7 @@ void InlineSpiller::spillAroundUses(unsigned Reg) { for (MachineRegisterInfo::reg_bundle_iterator RegI = MRI.reg_bundle_begin(Reg), E = MRI.reg_bundle_end(); RegI != E; ) { - MachineInstr *MI = &*(RegI++); + MachineInstr *MI = getBundleStart(&*(RegI++)); // Debug values are not allowed to affect codegen. if (MI->isDebugValue()) { -- cgit v1.2.3