From 9b087a70e66c785f64279634c536a848e78261ea Mon Sep 17 00:00:00 2001 From: =?utf8?q?Timm=20B=C3=A4der?= Date: Tue, 6 Sep 2022 09:31:17 +0200 Subject: [PATCH] [clang][Interp][NFC] Forward-declare Pointer in PrimType header No need to include the full Pointer.h here. --- clang/lib/AST/Interp/PrimType.cpp | 1 + clang/lib/AST/Interp/PrimType.h | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/clang/lib/AST/Interp/PrimType.cpp b/clang/lib/AST/Interp/PrimType.cpp index 082bfaf..bd0f73d 100644 --- a/clang/lib/AST/Interp/PrimType.cpp +++ b/clang/lib/AST/Interp/PrimType.cpp @@ -7,6 +7,7 @@ //===----------------------------------------------------------------------===// #include "PrimType.h" +#include "Pointer.h" using namespace clang; using namespace clang::interp; diff --git a/clang/lib/AST/Interp/PrimType.h b/clang/lib/AST/Interp/PrimType.h index de4bf9b..8490c1f 100644 --- a/clang/lib/AST/Interp/PrimType.h +++ b/clang/lib/AST/Interp/PrimType.h @@ -18,11 +18,12 @@ #include #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, -- 2.7.4