[clang][Interp][NFC] Forward-declare Pointer in PrimType header
authorTimm Bäder <tbaeder@redhat.com>
Tue, 6 Sep 2022 07:31:17 +0000 (09:31 +0200)
committerTimm Bäder <tbaeder@redhat.com>
Tue, 13 Sep 2022 08:40:52 +0000 (10:40 +0200)
No need to include the full Pointer.h here.

clang/lib/AST/Interp/PrimType.cpp
clang/lib/AST/Interp/PrimType.h

index 082bfaf..bd0f73d 100644 (file)
@@ -7,6 +7,7 @@
 //===----------------------------------------------------------------------===//
 
 #include "PrimType.h"
+#include "Pointer.h"
 
 using namespace clang;
 using namespace clang::interp;
index de4bf9b..8490c1f 100644 (file)
 #include <cstdint>
 #include "Boolean.h"
 #include "Integral.h"
-#include "Pointer.h"
 
 namespace clang {
 namespace interp {
 
+class Pointer;
+
 /// Enumeration of the primitive types of the VM.
 enum PrimType : unsigned {
   PT_Sint8,