[llvm] 78ebaa2 - [ORC] Fix build failure (NFC)

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


Author: Jie Fu
Date: 2024-04-24T15:44:32+08:00
New Revision: 78ebaa2d798f939e35e44778572eb54c4bf36550

URL: https://github.com/llvm/llvm-project/commit/78ebaa2d798f939e35e44778572eb54c4bf36550
DIFF: https://github.com/llvm/llvm-project/commit/78ebaa2d798f939e35e44778572eb54c4bf36550.diff

LOG: [ORC] Fix build failure (NFC)

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 aa3bfa0da5a3c8..c06e55c039d34b 100644
--- a/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/LLJIT.cpp
@@ -681,10 +681,8 @@ Error LLJITBuilderState::prepareForConstruction() {
         inconvertibleErrorCode());
 #endif // !LLVM_ENABLE_THREADS
 
-  LLVM_DEBUG({
-    bool ConcurrentCompilationSettingDefaulted = !SupportConcurrentCompilation;
-  });
-
+  [[maybe_unused]] bool ConcurrentCompilationSettingDefaulted =
+      !SupportConcurrentCompilation;
   if (!SupportConcurrentCompilation) {
 #if LLVM_ENABLE_THREADS
     SupportConcurrentCompilation = NumCompileThreads || ES || EPC;


        


More information about the llvm-commits mailing list