Totally disable assert, in order to fix PR101
authorChris Lattner <sabre@nondot.org>
Sun, 9 Nov 2003 00:29:51 +0000 (00:29 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 9 Nov 2003 00:29:51 +0000 (00:29 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9818 91177308-0d34-0410-b5e6-96231b3b80d8

runtime/GCCLibraries/crtend/C++-Exception.h
runtime/GCCLibraries/crtend/SJLJ-Exception.cpp

index 133f43a58ecc02ba81e4d6fe7fc0b692c27d48ee..d66b8acd7c9815d407028f5b154540ed1683269a 100644 (file)
 #include <typeinfo>
 #include <cassert>
 
+// Assert should only be used for debugging the runtime library.  Enabling it in
+// CVS will break some platforms!
+#undef assert
+#define assert(X)
+
 struct llvm_cxx_exception {
   // TypeInfo - A pointer to the C++ std::type_info object for this exception
   // class.  This is required because the class may not be polymorphic.
index 8bc13e7659f923e673fb9fbb97c758a83ae99e13..0221df1e437556b35d194a8093476ac05e26189b 100644 (file)
@@ -9,6 +9,11 @@
 #include <cstdlib>
 #include <cassert>
 
+// Assert should only be used for debugging the runtime library.  Enabling it in
+// CVS will break some platforms!
+#undef assert
+#define assert(X)
+
 // get_sjlj_exception - Adjust the llvm_exception pointer to be an appropriate
 // llvm_sjlj_exception pointer.
 inline llvm_sjlj_exception *get_sjlj_exception(llvm_exception *E) {