diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-03-20 17:18:33 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-03-20 17:18:33 +0000 |
commit | 810cce84342abf9c073d78a067775744e31c4de4 (patch) | |
tree | f4be67437edc0588657e9b3eb653c00d0f2a89f6 /lib/AsmParser | |
parent | 8334b9fa3bdfca1cc3c85b4156b165ed3f5f8c99 (diff) | |
download | external_llvm-810cce84342abf9c073d78a067775744e31c4de4.zip external_llvm-810cce84342abf9c073d78a067775744e31c4de4.tar.gz external_llvm-810cce84342abf9c073d78a067775744e31c4de4.tar.bz2 |
Don't delete things before their last use (avoids bad reads).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35214 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AsmParser')
-rw-r--r-- | lib/AsmParser/llvmAsmParser.y | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/AsmParser/llvmAsmParser.y b/lib/AsmParser/llvmAsmParser.y index 8427bcc..8bd2f43 100644 --- a/lib/AsmParser/llvmAsmParser.y +++ b/lib/AsmParser/llvmAsmParser.y @@ -1302,7 +1302,6 @@ Types Attrs.push_back($5); for (TypeWithAttrsList::iterator I=$3->begin(), E=$3->end(); I != E; ++I) { const Type *Ty = I->Ty->get(); - delete I->Ty; I->Ty = 0; Params.push_back(Ty); if (Ty != Type::VoidTy) Attrs.push_back(I->Attrs); @@ -1322,7 +1321,6 @@ Types Attrs.push_back($5); for (TypeWithAttrsList::iterator I=$3->begin(), E=$3->end(); I != E; ++I) { const Type* Ty = I->Ty->get(); - delete I->Ty; I->Ty = 0; Params.push_back(Ty); if (Ty != Type::VoidTy) Attrs.push_back(I->Attrs); |