[clang] b87e5a0 - Add missing llvm/Support/Compiler.h include for MSVC builds without __has_attribute

Simon Pilgrim via cfe-commits cfe-commits at lists.llvm.org
Fri May 19 02:40:40 PDT 2023


Author: Simon Pilgrim
Date: 2023-05-19T10:39:31+01:00
New Revision: b87e5a046f6e3ee117c9f8cbe9ae368b30127b37

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

LOG: Add missing llvm/Support/Compiler.h include for MSVC builds without __has_attribute

Added: 
    

Modified: 
    clang/include/clang/Interpreter/Value.h

Removed: 
    


################################################################################
diff  --git a/clang/include/clang/Interpreter/Value.h b/clang/include/clang/Interpreter/Value.h
index e75a90505154..4df4367030ec 100644
--- a/clang/include/clang/Interpreter/Value.h
+++ b/clang/include/clang/Interpreter/Value.h
@@ -33,7 +33,9 @@
 #ifndef LLVM_CLANG_INTERPRETER_VALUE_H
 #define LLVM_CLANG_INTERPRETER_VALUE_H
 
+#include "llvm/Support/Compiler.h"
 #include <cstdint>
+
 // NOTE: Since the REPL itself could also include this runtime, extreme caution
 // should be taken when MAKING CHANGES to this file, especially when INCLUDE NEW
 // HEADERS, like <string>, <memory> and etc. (That pulls a large number of


        


More information about the cfe-commits mailing list