projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b1a497
)
Guess what happens when asserts are disabled. :(
author
Chris Lattner
<sabre@nondot.org>
Wed, 30 Aug 2006 20:37:06 +0000
(20:37 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Wed, 30 Aug 2006 20:37:06 +0000
(20:37 +0000)
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
lib/System/DynamicLibrary.cpp
patch
|
blob
|
history
diff --git
a/lib/System/DynamicLibrary.cpp
b/lib/System/DynamicLibrary.cpp
index 08b7a88cbb3d5f572cd4b12c6464536e198f2bf4..0876d5deecdaab7a62d5f28e31db2c789de4f6de 100644
(file)
--- 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;
}
}