Skip to content

Commit b6301c2

Browse files
committed
Include TargetInfo.h explicitly
llvm/llvm-project@d7c5037e6b9f removes implicit transitive includes of TargetInfo.h, so we must include it explicitly where it's needed.
1 parent 8b86507 commit b6301c2

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

lib/AST/ClangTypeConverter.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
#include "swift/Basic/LLVM.h"
3535

3636
#include "clang/AST/ASTContext.h"
37+
#include "clang/Basic/TargetInfo.h"
3738
#include "clang/Sema/Sema.h"
3839

3940
using namespace swift;

lib/ClangImporter/ImportDecl.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
#include "clang/AST/Attr.h"
4848
#include "clang/Basic/CharInfo.h"
4949
#include "swift/Basic/Statistic.h"
50+
#include "clang/Basic/TargetInfo.h"
5051
#include "clang/Lex/Preprocessor.h"
5152
#include "clang/Sema/Lookup.h"
5253

lib/IDE/Utils.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "swift/Subsystems.h"
2020
#include "clang/AST/ASTContext.h"
2121
#include "clang/AST/DeclObjC.h"
22+
#include "clang/Basic/TargetInfo.h"
2223
#include "clang/CodeGen/ObjectFilePCHContainerOperations.h"
2324
#include "clang/Frontend/CompilerInstance.h"
2425
#include "clang/Frontend/TextDiagnosticBuffer.h"

0 commit comments

Comments
 (0)