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 | 9543866c27926203f192a210e8e15d9f40733f26 (patch) | |
tree | 0b78fc023938af3f66727672d47fbce21acdc39b /llvm/lib/System/DynamicLibrary.cpp | |
parent | 69c32d55643c2abbe19b78e255a3258934a0ca4d (diff) | |
download | bcm5719-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.cpp | 3 |
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; } } |