mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-19 02:03:11 +00:00
Guess what happens when asserts are disabled. :(
Also, the assert could never fire due to || instead of &&. llvm-svn: 29977
This commit is contained in:
parent
c7fb7a05bf
commit
3530cfb3c3
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user