[llvm] 4f64c80 - [llvm] Add missing include for !LLVM_ENABLE_THREADS

Michael Spencer via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 15 12:40:27 PDT 2025


Author: Michael Spencer
Date: 2025-04-15T12:39:51-07:00
New Revision: 4f64c80d5a23c244f942193e58ecac666c173308

URL: https://github.com/llvm/llvm-project/commit/4f64c80d5a23c244f942193e58ecac666c173308
DIFF: https://github.com/llvm/llvm-project/commit/4f64c80d5a23c244f942193e58ecac666c173308.diff

LOG: [llvm] Add missing include for !LLVM_ENABLE_THREADS

thread.h used report_fatal_error without including ErrorHandling.h

Added: 
    

Modified: 
    llvm/include/llvm/Support/thread.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Support/thread.h b/llvm/include/llvm/Support/thread.h
index e3005fdb63175..ef2fba822cb1c 100644
--- a/llvm/include/llvm/Support/thread.h
+++ b/llvm/include/llvm/Support/thread.h
@@ -213,6 +213,7 @@ inline thread::id get_id() { return std::this_thread::get_id(); }
 
 #else // !LLVM_ENABLE_THREADS
 
+#include "llvm/Support/ErrorHandling.h"
 #include <utility>
 
 namespace llvm {


        


More information about the llvm-commits mailing list