Skip to content

Commit 6a01da4

Browse files
committed
[clang]Interp] Re-add some header deps of Source.h
This is a partial revert of cc69662 The full definition of Decl and Stmt are required by PointerUnion, which validates the number of free bits in Decl* etc based on type alignment.
1 parent f756061 commit 6a01da4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clang/lib/AST/Interp/Source.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,12 @@
1414
#define LLVM_CLANG_AST_INTERP_SOURCE_H
1515

1616
#include "PrimType.h"
17+
#include "clang/AST/DeclBase.h"
18+
#include "clang/AST/Stmt.h"
1719
#include "llvm/ADT/PointerUnion.h"
1820
#include "llvm/Support/Endian.h"
1921

2022
namespace clang {
21-
class Stmt;
22-
class Decl;
2323
class Expr;
2424
class SourceLocation;
2525
class SourceRange;

0 commit comments

Comments
 (0)