Skip to content

Commit 4c55505

Browse files
authored
[AArch64][Subtarget] add missing direct include of Triple.h (#143362)
`AArch64Subtarget.h` uses the complete type of `Triple`, but had only forward declared the class, which happend to be included through the following bottom-up path for example: "llvm/TargetParser/Triple.h" "llvm/MC/MCSubtargetInfo.h" "llvm/CodeGen/TargetSubtargetInfo.h"
1 parent 8b8cbe9 commit 4c55505

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AArch64/AArch64Subtarget.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@
2626
#include "llvm/CodeGen/RegisterBankInfo.h"
2727
#include "llvm/CodeGen/TargetSubtargetInfo.h"
2828
#include "llvm/IR/DataLayout.h"
29+
#include "llvm/TargetParser/Triple.h"
2930

3031
#define GET_SUBTARGETINFO_HEADER
3132
#include "AArch64GenSubtargetInfo.inc"
3233

3334
namespace llvm {
3435
class GlobalValue;
3536
class StringRef;
36-
class Triple;
3737

3838
class AArch64Subtarget final : public AArch64GenSubtargetInfo {
3939
public:

0 commit comments

Comments
 (0)