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 | 5ca139100383cdfb929d053099ffadb4ada12626 (patch) | |
| tree | 7228448fb024d55a97e853434b244af887d71bf6 /llvm/lib/Target/X86 | |
| parent | 90f3a9a1c767585231f5f8eda46890c72cd4b0a8 (diff) | |
| download | bcm5719-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.cpp | 2 |
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; } |

