From c34706c4ffd55669354f75c1ad741c6c33e79515 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sun, 4 Feb 2007 01:05:23 +0000 Subject: [PATCH] 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33858 91177308-0d34-0410-b5e6-96231b3b80d8 --- tools/llvm-upgrade/UpgradeParser.y | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/llvm-upgrade/UpgradeParser.y b/tools/llvm-upgrade/UpgradeParser.y index cf36340d46c..34ebd62a413 100644 --- a/tools/llvm-upgrade/UpgradeParser.y +++ b/tools/llvm-upgrade/UpgradeParser.y @@ -1804,7 +1804,6 @@ UpRTypes for (std::list::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) { -- 2.34.1