1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

When performing return slot optimization, remember to inform memdep when we're removing the memcpy.

llvm-svn: 47364
This commit is contained in:
Owen Anderson 2008-02-20 08:23:02 +00:00
parent a1f7505972
commit 52ed56338d

View File

@ -1139,6 +1139,7 @@ bool GVN::performReturnSlotOptzn(MemCpyInst* cpy, CallInst* C,
MD.dropInstruction(C);
// Remove the memcpy
MD.removeInstruction(cpy);
toErase.push_back(cpy);
return true;