[llvm-commits] [hlvm] r38310 - /hlvm/trunk/hlvm/AST/AST.cpp

Reid Spencer reid at x10sys.com
Sat Jul 7 17:02:13 PDT 2007


Author: reid
Date: Sat Jul  7 19:02:13 2007
New Revision: 38310

URL: http://llvm.org/viewvc/llvm-project?rev=38310&view=rev
Log:
Remove assertions checking for null type pointers. We recently equated a zero
valued Type* with the "void" type so it is a legitimate value for an operator.

Modified:
    hlvm/trunk/hlvm/AST/AST.cpp

Modified: hlvm/trunk/hlvm/AST/AST.cpp
URL: http://llvm.org/viewvc/llvm-project/hlvm/trunk/hlvm/AST/AST.cpp?rev=38310&r1=38309&r2=38310&view=diff

==============================================================================
--- hlvm/trunk/hlvm/AST/AST.cpp (original)
+++ hlvm/trunk/hlvm/AST/AST.cpp Sat Jul  7 19:02:13 2007
@@ -686,7 +686,6 @@
   const Locator* loc ///< The source locator
 )
 {
-  hlvmAssert(Ty != 0 && "Need a type to instantiate a UnaryOp");
   hlvmAssert(oprnd1 != 0 && "Invalid Operand for UnaryOp");
   OpClass* result = new OpClass();
   result->setLocator(loc);
@@ -713,7 +712,6 @@
   const Locator* loc ///< The source locator
 )
 {
-  hlvmAssert(Ty != 0 && "Need a type to instantiate a BinaryOp");
   hlvmAssert(oprnd1 != 0 && "Invalid Operand for BinaryOp");
   hlvmAssert(oprnd2 != 0 && "Invalid Operand for BinUnaryOp");
   OpClass* result = new OpClass();
@@ -745,7 +743,6 @@
   const Locator* loc ///< The source locator
 )
 {
-  hlvmAssert(Ty != 0 && "Need a type to instantiate a TernaryOp");
   hlvmAssert(oprnd1 != 0 && "Invalid Operand for TernaryOp");
   hlvmAssert(oprnd2 != 0 && "Invalid Operand for TernUnaryOp");
   hlvmAssert(oprnd3 != 0 && "Invalid Operand for TernUnaryOp");
@@ -776,7 +773,6 @@
   const Locator* loc
 ) 
 {
-  hlvmAssert(Ty != 0 && "Need a type to instantiate a MultiOp");
   OpClass* result = new OpClass();
   result->setLocator(loc);
   result->setType(Ty);





More information about the llvm-commits mailing list