diff --git a/clang/lib/AST/Interp/ByteCodeExprGen.h b/clang/lib/AST/Interp/ByteCodeExprGen.h index af5b4678b0703..46a926bfb5f01 100644 --- a/clang/lib/AST/Interp/ByteCodeExprGen.h +++ b/clang/lib/AST/Interp/ByteCodeExprGen.h @@ -224,9 +224,9 @@ class ByteCodeExprGen : public ConstStmtVisitor, bool>, llvm::function_ref Indirect); /// Emits an APSInt constant. - bool emitConst(const APSInt &Value, const Expr *E); - bool emitConst(const APInt &Value, const Expr *E) { - return emitConst(static_cast(Value), E); + bool emitConst(const llvm::APSInt &Value, const Expr *E); + bool emitConst(const llvm::APInt &Value, const Expr *E) { + return emitConst(static_cast(Value), E); } /// Emits an integer constant. diff --git a/clang/lib/AST/Interp/PrimType.h b/clang/lib/AST/Interp/PrimType.h index 91311cf7030a7..30bec3f2a17cf 100644 --- a/clang/lib/AST/Interp/PrimType.h +++ b/clang/lib/AST/Interp/PrimType.h @@ -13,7 +13,6 @@ #ifndef LLVM_CLANG_AST_INTERP_TYPE_H #define LLVM_CLANG_AST_INTERP_TYPE_H -#include "Integral.h" #include #include #include @@ -25,6 +24,7 @@ class Pointer; class Boolean; class Floating; class FunctionPointer; +template class Integral; /// Enumeration of the primitive types of the VM. enum PrimType : unsigned { diff --git a/clang/lib/AST/Interp/Program.cpp b/clang/lib/AST/Interp/Program.cpp index 106c59463e2bf..f6f378dd49f16 100644 --- a/clang/lib/AST/Interp/Program.cpp +++ b/clang/lib/AST/Interp/Program.cpp @@ -10,6 +10,7 @@ #include "ByteCodeStmtGen.h" #include "Context.h" #include "Function.h" +#include "Integral.h" #include "Opcode.h" #include "PrimType.h" #include "clang/AST/Decl.h"