https://github.com/tbaederr created 
https://github.com/llvm/llvm-project/pull/223610

Replace it with a forward declaration.

>From ecdbbb4ffe3ef0e2cb356b81ba1c417e38ffdb16 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Timm=20B=C3=A4der?= <[email protected]>
Date: Tue, 15 Sep 2026 08:52:13 +0200
Subject: [PATCH] [clang][bytecode][NFC] Remove unnecessary include

Replace it with a forward declaration.
---
 clang/lib/AST/ByteCode/Record.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/clang/lib/AST/ByteCode/Record.cpp 
b/clang/lib/AST/ByteCode/Record.cpp
index 7faebda880c80..976d8c2d42074 100644
--- a/clang/lib/AST/ByteCode/Record.cpp
+++ b/clang/lib/AST/ByteCode/Record.cpp
@@ -7,11 +7,14 @@
 
//===----------------------------------------------------------------------===//
 
 #include "Record.h"
-#include "clang/AST/ASTContext.h"
 
 using namespace clang;
 using namespace clang::interp;
 
+namespace clang {
+class ASTContext;
+} // namespace clang
+
 Record::Record(const RecordDecl *Decl, BaseList &&SrcBases,
                FieldList &&SrcFields, VirtualBaseList &&SrcVirtualBases,
                unsigned VirtualSize, unsigned BaseSize, bool HasPtrField)

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to