From d338a23b0cc271df03c48432001743d5358e1b67 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 9 Nov 2003 00:29:51 +0000 Subject: [PATCH] Totally disable assert, in order to fix PR101 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9818 91177308-0d34-0410-b5e6-96231b3b80d8 --- runtime/GCCLibraries/crtend/C++-Exception.h | 5 +++++ runtime/GCCLibraries/crtend/SJLJ-Exception.cpp | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/runtime/GCCLibraries/crtend/C++-Exception.h b/runtime/GCCLibraries/crtend/C++-Exception.h index 133f43a58ec..d66b8acd7c9 100644 --- a/runtime/GCCLibraries/crtend/C++-Exception.h +++ b/runtime/GCCLibraries/crtend/C++-Exception.h @@ -12,6 +12,11 @@ #include #include +// 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. diff --git a/runtime/GCCLibraries/crtend/SJLJ-Exception.cpp b/runtime/GCCLibraries/crtend/SJLJ-Exception.cpp index 8bc13e7659f..0221df1e437 100644 --- a/runtime/GCCLibraries/crtend/SJLJ-Exception.cpp +++ b/runtime/GCCLibraries/crtend/SJLJ-Exception.cpp @@ -9,6 +9,11 @@ #include #include +// 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) {