diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-02-04 01:05:23 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-02-04 01:05:23 +0000 |
commit | c34706c4ffd55669354f75c1ad741c6c33e79515 (patch) | |
tree | b69b852452ef0c72a0a8f4a6f6d24c00f2def2fc /tools/llvm-upgrade | |
parent | 718071c476014cb0aaff9c7d018120d5a8930217 (diff) | |
download | external_llvm-c34706c4ffd55669354f75c1ad741c6c33e79515.zip external_llvm-c34706c4ffd55669354f75c1ad741c6c33e79515.tar.gz external_llvm-c34706c4ffd55669354f75c1ad741c6c33e79515.tar.bz2 |
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
Diffstat (limited to 'tools/llvm-upgrade')
-rw-r--r-- | tools/llvm-upgrade/UpgradeParser.y | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/llvm-upgrade/UpgradeParser.y b/tools/llvm-upgrade/UpgradeParser.y index cf36340..34ebd62 100644 --- a/tools/llvm-upgrade/UpgradeParser.y +++ b/tools/llvm-upgrade/UpgradeParser.y @@ -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) { |