diff options
author | Chris Lattner <sabre@nondot.org> | 2006-08-30 20:37:06 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-08-30 20:37:06 +0000 |
commit | 9b0d6f4ca64b9d7b029a5f39581a02b2e7bb6559 (patch) | |
tree | a67515ed3b56ede50b6eafbb19b7aba3450555e0 /lib/System/DynamicLibrary.cpp | |
parent | 1b1a49714ef26225a42199cf2930529f31868322 (diff) |
Guess what happens when asserts are disabled. :(
Also, the assert could never fire due to || instead of &&.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29977 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/System/DynamicLibrary.cpp')
-rw-r--r-- | lib/System/DynamicLibrary.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/System/DynamicLibrary.cpp b/lib/System/DynamicLibrary.cpp index 08b7a88cbb..0876d5deec 100644 --- a/lib/System/DynamicLibrary.cpp +++ b/lib/System/DynamicLibrary.cpp @@ -48,7 +48,8 @@ using namespace llvm::sys; static inline void check_ltdl_initialization() { static bool did_initialize_ltdl = false; if (!did_initialize_ltdl) { - assert(0 == lt_dlinit() || "Can't init the ltdl library"); + int Err = lt_dlinit(); + assert(0 == Err && "Can't init the ltdl library"); did_initialize_ltdl = true; } } |