aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-01-14 06:14:33 +0000
committerChris Lattner <sabre@nondot.org>2011-01-14 06:14:33 +0000
commitd357e88740686e41e9f7fa208887336eb9af3c47 (patch)
tree3c637bd594573b7c3d99eabb6ff3dc8393c552c8 /lib
parent9e27cc80496bfa5d57bba26aa930e462e7e35a80 (diff)
revert my fastisel patch again which apparently still gives the
llvm-gcc-i386-linux-selfhost buildbot heartburn... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123431 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/X86/X86FastISel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/X86FastISel.cpp b/lib/Target/X86/X86FastISel.cpp
index 9d42ac2e47..f29d127c85 100644
--- a/lib/Target/X86/X86FastISel.cpp
+++ b/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;
- FuncInfo.MBB->insert(FuncInfo.InsertPt, Result);
+ MI->getParent()->insert(MI, Result);
MI->eraseFromParent();
return true;
}