summaryrefslogtreecommitdiffstats
path: root/llvm/lib/System/DynamicLibrary.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-08-30 20:37:06 +0000
committerChris Lattner <sabre@nondot.org>2006-08-30 20:37:06 +0000
commit9543866c27926203f192a210e8e15d9f40733f26 (patch)
tree0b78fc023938af3f66727672d47fbce21acdc39b /llvm/lib/System/DynamicLibrary.cpp
parent69c32d55643c2abbe19b78e255a3258934a0ca4d (diff)
downloadbcm5719-llvm-9543866c27926203f192a210e8e15d9f40733f26.tar.gz
bcm5719-llvm-9543866c27926203f192a210e8e15d9f40733f26.zip
Guess what happens when asserts are disabled. :(
Also, the assert could never fire due to || instead of &&. llvm-svn: 29977
Diffstat (limited to 'llvm/lib/System/DynamicLibrary.cpp')
-rw-r--r--llvm/lib/System/DynamicLibrary.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/System/DynamicLibrary.cpp b/llvm/lib/System/DynamicLibrary.cpp
index 08b7a88cbb3..0876d5deecd 100644
--- a/llvm/lib/System/DynamicLibrary.cpp
+++ b/llvm/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;
}
}
OpenPOWER on IntegriCloud