[llvm-commits] CVS: llvm/lib/AsmParser/llvmAsmParser.y

Reid Spencer reid at x10sys.com
Tue Mar 20 10:18:53 PDT 2007



Changes in directory llvm/lib/AsmParser:

llvmAsmParser.y updated: 1.330 -> 1.331
---
Log message:

Don't delete things before their last use (avoids bad reads).


---
Diffs of the changes:  (+0 -2)

 llvmAsmParser.y |    2 --
 1 files changed, 2 deletions(-)


Index: llvm/lib/AsmParser/llvmAsmParser.y
diff -u llvm/lib/AsmParser/llvmAsmParser.y:1.330 llvm/lib/AsmParser/llvmAsmParser.y:1.331
--- llvm/lib/AsmParser/llvmAsmParser.y:1.330	Mon Mar 19 20:13:00 2007
+++ llvm/lib/AsmParser/llvmAsmParser.y	Tue Mar 20 12:18:33 2007
@@ -1302,7 +1302,6 @@
     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 @@
     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);






More information about the llvm-commits mailing list