Conditional usage of LLVM DebugFlag
DebugFlag is conditionally exported by LLVM in llvm/Support/Debug.h in-between an #ifndef NDEBUG block; RustWrapper should not unconditionally use it. This closes #3701. Signed-off-by: Luca Bruno <lucab@debian.org>
This commit is contained in:
parent
39acb06503
commit
97ecde297e
1 changed files with 2 additions and 0 deletions
|
@ -493,5 +493,7 @@ extern "C" LLVMValueRef LLVMBuildAtomicRMW(LLVMBuilderRef B,
|
|||
}
|
||||
|
||||
extern "C" void LLVMSetDebug(int Enabled) {
|
||||
#ifndef NDEBUG
|
||||
DebugFlag = Enabled;
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue