mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
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
This commit is contained in:
parent
1b1a49714e
commit
9b0d6f4ca6
@ -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…
Reference in New Issue
Block a user