[llvm-commits] [poolalloc] r114623 - /poolalloc/trunk/lib/DSA/DSTest.cpp

Arushi Aggarwal aggarwa4 at illinois.edu
Wed Sep 22 21:11:27 PDT 2010


Author: aggarwa4
Date: Wed Sep 22 23:11:27 2010
New Revision: 114623

URL: http://llvm.org/viewvc/llvm-project?rev=114623&view=rev
Log:
Better error messages

Modified:
    poolalloc/trunk/lib/DSA/DSTest.cpp

Modified: poolalloc/trunk/lib/DSA/DSTest.cpp
URL: http://llvm.org/viewvc/llvm-project/poolalloc/trunk/lib/DSA/DSTest.cpp?rev=114623&r1=114622&r2=114623&view=diff
==============================================================================
--- poolalloc/trunk/lib/DSA/DSTest.cpp (original)
+++ poolalloc/trunk/lib/DSA/DSTest.cpp Wed Sep 22 23:11:27 2010
@@ -461,7 +461,13 @@
       
       printTypesForNode(*test, NV);
       
-      assert(test->str()==typeRef && "Types don't match!");
+      if(test->str()!=typeRef) {
+              errs() << "ERROR: Type test for type :     \t" <<
+                typeRef  << " Failed \n";
+              errs() << "       But found this type:\t" <<
+                test->str() << "\n";
+              assert(0 && "Type verification failed!");
+      }
     }
     return true;
   }





More information about the llvm-commits mailing list