[llvm] 9a8235a - [ORC] Fix -Wunused-variable in LLJIT.cpp (NFC)

Jie Fu via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 24 00:36:12 PDT 2024


Author: Jie Fu
Date: 2024-04-24T15:35:10+08:00
New Revision: 9a8235a290b87a311217b9ffd811de06bff38746

URL: https://github.com/llvm/llvm-project/commit/9a8235a290b87a311217b9ffd811de06bff38746
DIFF: https://github.com/llvm/llvm-project/commit/9a8235a290b87a311217b9ffd811de06bff38746.diff

LOG: [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.

Added: 
    

Modified: 
    llvm/lib/ExecutionEngine/Orc/LLJIT.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp b/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
index 53f13a68c7b8b3..aa3bfa0da5a3c8 100644
--- a/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
@@ -681,7 +681,10 @@ Error LLJITBuilderState::prepareForConstruction() {
         inconvertibleErrorCode());
 #endif // !LLVM_ENABLE_THREADS
 
-  bool ConcurrentCompilationSettingDefaulted = !SupportConcurrentCompilation;
+  LLVM_DEBUG({
+    bool ConcurrentCompilationSettingDefaulted = !SupportConcurrentCompilation;
+  });
+
   if (!SupportConcurrentCompilation) {
 #if LLVM_ENABLE_THREADS
     SupportConcurrentCompilation = NumCompileThreads || ES || EPC;


        


More information about the llvm-commits mailing list