Skip to content

Commit 9a8235a

Browse files
committed
[ORC] Fix -Wunused-variable in LLJIT.cpp (NFC)
llvm-project/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp:684:8: error: unused variable 'ConcurrentCompilationSettingDefaulted' [-Werror,-Wunused-variable] bool ConcurrentCompilationSettingDefaulted = !SupportConcurrentCompilation; ^ 1 error generated.
1 parent 46b011d commit 9a8235a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

llvm/lib/ExecutionEngine/Orc/LLJIT.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,10 @@ Error LLJITBuilderState::prepareForConstruction() {
681681
inconvertibleErrorCode());
682682
#endif // !LLVM_ENABLE_THREADS
683683

684-
bool ConcurrentCompilationSettingDefaulted = !SupportConcurrentCompilation;
684+
LLVM_DEBUG({
685+
bool ConcurrentCompilationSettingDefaulted = !SupportConcurrentCompilation;
686+
});
687+
685688
if (!SupportConcurrentCompilation) {
686689
#if LLVM_ENABLE_THREADS
687690
SupportConcurrentCompilation = NumCompileThreads || ES || EPC;

0 commit comments

Comments
 (0)