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

Chris Lattner lattner at cs.uiuc.edu
Tue Dec 23 16:19:01 PST 2003


Changes in directory llvm/lib/AsmParser:

llvmAsmParser.y updated: 1.145 -> 1.146

---
Log message:

Right, fix the problem with invoke instructions, not just call instructions


---
Diffs of the changes:  (+1 -1)

Index: llvm/lib/AsmParser/llvmAsmParser.y
diff -u llvm/lib/AsmParser/llvmAsmParser.y:1.145 llvm/lib/AsmParser/llvmAsmParser.y:1.146
--- llvm/lib/AsmParser/llvmAsmParser.y:1.145	Tue Dec 23 14:39:17 2003
+++ llvm/lib/AsmParser/llvmAsmParser.y	Tue Dec 23 16:18:36 2003
@@ -1626,7 +1626,6 @@
       Ty = FunctionType::get($2->get(), ParamTypes, isVarArg);
       PFTy = PointerType::get(Ty);
     }
-    delete $2;
 
     Value *V = getVal(PFTy, $3);   // Get the function we're calling...
 
@@ -1657,6 +1656,7 @@
 
       $$ = new InvokeInst(V, Normal, Except, *$5);
     }
+    delete $2;
     delete $5;
   }
   | UNWIND {





More information about the llvm-commits mailing list