From: Timm Bäder Date: Tue, 6 Sep 2022 07:31:17 +0000 (+0200) Subject: [clang][Interp][NFC] Forward-declare Pointer in PrimType header X-Git-Tag: upstream/17.0.6~33694 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9b087a70e66c785f64279634c536a848e78261ea;p=platform%2Fupstream%2Fllvm.git [clang][Interp][NFC] Forward-declare Pointer in PrimType header No need to include the full Pointer.h here. --- 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,