diff --git a/llvm/include/llvm/CodeGen/ByteProvider.h b/llvm/include/llvm/CodeGen/ByteProvider.h index 3187b4e68c56f..b97ff5c1aa039 100644 --- a/llvm/include/llvm/CodeGen/ByteProvider.h +++ b/llvm/include/llvm/CodeGen/ByteProvider.h @@ -17,6 +17,7 @@ #ifndef LLVM_CODEGEN_BYTEPROVIDER_H #define LLVM_CODEGEN_BYTEPROVIDER_H +#include "llvm/Support/DataTypes.h" #include #include diff --git a/llvm/include/llvm/ProfileData/Coverage/MCDCTypes.h b/llvm/include/llvm/ProfileData/Coverage/MCDCTypes.h index 191e4ead95ea2..fea1e0bc04d26 100644 --- a/llvm/include/llvm/ProfileData/Coverage/MCDCTypes.h +++ b/llvm/include/llvm/ProfileData/Coverage/MCDCTypes.h @@ -13,6 +13,7 @@ #ifndef LLVM_PROFILEDATA_COVERAGE_MCDCTYPES_H #define LLVM_PROFILEDATA_COVERAGE_MCDCTYPES_H +#include "llvm/Support/DataTypes.h" #include #include #include diff --git a/llvm/include/llvm/Support/thread.h b/llvm/include/llvm/Support/thread.h index 69c06c050aac5..e3005fdb63175 100644 --- a/llvm/include/llvm/Support/thread.h +++ b/llvm/include/llvm/Support/thread.h @@ -18,6 +18,8 @@ #include "llvm/Config/llvm-config.h" #include +#include +#include #ifdef _WIN32 typedef unsigned long DWORD; @@ -202,8 +204,8 @@ class thread { }; namespace this_thread { - inline thread::id get_id() { return std::this_thread::get_id(); } -} +inline thread::id get_id() { return std::this_thread::get_id(); } +} // namespace this_thread #endif // LLVM_ON_UNIX || _WIN32