summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-01-14 04:24:28 +0000
committerChris Lattner <sabre@nondot.org>2011-01-14 04:24:28 +0000
commit5ca139100383cdfb929d053099ffadb4ada12626 (patch)
tree7228448fb024d55a97e853434b244af887d71bf6 /llvm/lib/Target/X86
parent90f3a9a1c767585231f5f8eda46890c72cd4b0a8 (diff)
downloadbcm5719-llvm-5ca139100383cdfb929d053099ffadb4ada12626.tar.gz
bcm5719-llvm-5ca139100383cdfb929d053099ffadb4ada12626.zip
reapply r123414 now that the botz are calmed down and the fix is already in.
llvm-svn: 123427
Diffstat (limited to 'llvm/lib/Target/X86')
-rw-r--r--llvm/lib/Target/X86/X86FastISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86FastISel.cpp b/llvm/lib/Target/X86/X86FastISel.cpp
index f29d127c85d..9d42ac2e470 100644
--- a/llvm/lib/Target/X86/X86FastISel.cpp
+++ b/llvm/lib/Target/X86/X86FastISel.cpp
@@ -1933,7 +1933,7 @@ bool X86FastISel::TryToFoldLoad(MachineInstr *MI, unsigned OpNo,
XII.foldMemoryOperandImpl(*FuncInfo.MF, MI, OpNo, AddrOps, Size, Alignment);
if (Result == 0) return false;
- MI->getParent()->insert(MI, Result);
+ FuncInfo.MBB->insert(FuncInfo.InsertPt, Result);
MI->eraseFromParent();
return true;
}
OpenPOWER on IntegriCloud