[clang] 6a01da4 - [clang]Interp] Re-add some header deps of Source.h

Sam McCall via cfe-commits cfe-commits at lists.llvm.org
Mon Oct 2 06:59:13 PDT 2023


Author: Sam McCall
Date: 2023-10-02T15:57:16+02:00
New Revision: 6a01da4b7cbd70988151f1aa0af6213cf14246e8

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

LOG: [clang]Interp] Re-add some header deps of Source.h

This is a partial revert of cc696627657c422f8d580354a76d32fda0f0157f

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.

Added: 
    

Modified: 
    clang/lib/AST/Interp/Source.h

Removed: 
    


################################################################################
diff  --git a/clang/lib/AST/Interp/Source.h b/clang/lib/AST/Interp/Source.h
index e97e897e72394d5..fec950dd544f8a1 100644
--- a/clang/lib/AST/Interp/Source.h
+++ b/clang/lib/AST/Interp/Source.h
@@ -14,12 +14,12 @@
 #define LLVM_CLANG_AST_INTERP_SOURCE_H
 
 #include "PrimType.h"
+#include "clang/AST/DeclBase.h"
+#include "clang/AST/Stmt.h"
 #include "llvm/ADT/PointerUnion.h"
 #include "llvm/Support/Endian.h"
 
 namespace clang {
-class Stmt;
-class Decl;
 class Expr;
 class SourceLocation;
 class SourceRange;


        


More information about the cfe-commits mailing list