From 30853cd689efd73a005163436673c13a29eca805 Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Wed, 15 Apr 2020 13:26:22 -0700 Subject: [PATCH] Attempt to fix build with MSVC. MSVC appears to instantiate the virtual members of FoldingSet when instantiating the class definition, thereby requiring the element type to be defined so that its hash function is known. This is intended to be a temporary fix; ideally, FoldingSet should not require this. --- clang/include/clang/AST/ASTContext.h | 1 + 1 file changed, 1 insertion(+) diff --git a/clang/include/clang/AST/ASTContext.h b/clang/include/clang/AST/ASTContext.h index ac742fe..dc91983 100644 --- a/clang/include/clang/AST/ASTContext.h +++ b/clang/include/clang/AST/ASTContext.h @@ -21,6 +21,7 @@ #include "clang/AST/ComparisonCategories.h" #include "clang/AST/Decl.h" #include "clang/AST/DeclBase.h" +#include "clang/AST/DeclCXX.h" #include "clang/AST/DeclarationName.h" #include "clang/AST/ExternalASTSource.h" #include "clang/AST/NestedNameSpecifier.h" -- 2.7.4