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:
Luca Bruno 2012-10-08 21:40:09 +02:00
parent 39acb06503
commit 97ecde297e

View File

@ -493,5 +493,7 @@ extern "C" LLVMValueRef LLVMBuildAtomicRMW(LLVMBuilderRef B,
} }
extern "C" void LLVMSetDebug(int Enabled) { extern "C" void LLVMSetDebug(int Enabled) {
#ifndef NDEBUG
DebugFlag = Enabled; DebugFlag = Enabled;
#endif
} }