forked from OSchip/llvm-project
For PR1151:
Make llvm-upgrade valgrind clean. Deleting type instances is a really nasty thing to do to LLVM. This was a hold-over from the re-write. This fixes test/Assembler/2007-01-22-UpgradeTypeMapInvalidMemory.ll and potentially many other bugs. llvm-svn: 33858
This commit is contained in:
parent
ed39c86176
commit
d9f7298477
|
@ -1804,7 +1804,6 @@ UpRTypes
|
|||
for (std::list<llvm::PATypeInfo>::iterator I = $3->begin(),
|
||||
E = $3->end(); I != E; ++I) {
|
||||
Params.push_back(I->T->get());
|
||||
delete I->T;
|
||||
}
|
||||
FunctionType::ParamAttrsList ParamAttrs;
|
||||
if (CurFun.LastCC == OldCallingConv::CSRet) {
|
||||
|
|
Loading…
Reference in New Issue