Changes in directory llvm/tools/llvm-upgrade:
UpgradeParser.y updated: 1.55 -> 1.56 --- Log message: For PR1151: http://llvm.org/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. --- Diffs of the changes: (+0 -1) UpgradeParser.y | 1 - 1 files changed, 1 deletion(-) Index: llvm/tools/llvm-upgrade/UpgradeParser.y diff -u llvm/tools/llvm-upgrade/UpgradeParser.y:1.55 llvm/tools/llvm-upgrade/UpgradeParser.y:1.56 --- llvm/tools/llvm-upgrade/UpgradeParser.y:1.55 Thu Feb 1 20:16:23 2007 +++ llvm/tools/llvm-upgrade/UpgradeParser.y Sat Feb 3 19:05:23 2007 @@ -1804,7 +1804,6 @@ 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) { _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits