diff options
author | Chris Lattner <sabre@nondot.org> | 2011-01-14 04:24:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2011-01-14 04:24:28 +0000 |
commit | 9e27cc80496bfa5d57bba26aa930e462e7e35a80 (patch) | |
tree | fdc35e8e7258ee99705592cc389ec5957e862a5c /lib | |
parent | 70e5e222dbae95cd75ae0610aa6740f886a7907e (diff) |
reapply r123414 now that the botz are calmed down and the fix is already in.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123427 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/X86/X86FastISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/X86FastISel.cpp b/lib/Target/X86/X86FastISel.cpp index f29d127c85..9d42ac2e47 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; - MI->getParent()->insert(MI, Result); + FuncInfo.MBB->insert(FuncInfo.InsertPt, Result); MI->eraseFromParent(); return true; } |