llvmorg-github-actions[bot] wrote:

<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Timm Baeder (tbaederr)

<details>
<summary>Changes</summary>

Replace it with a forward declaration.

---
Full diff: https://github.com/llvm/llvm-project/pull/223610.diff


1 Files Affected:

- (modified) clang/lib/AST/ByteCode/Record.cpp (+4-1) 


``````````diff
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)

``````````

</details>


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

Reply via email to