Author: Richard Smith Date: 2020-04-15T13:28:24-07:00 New Revision: 30853cd689efd73a005163436673c13a29eca805
URL: https://github.com/llvm/llvm-project/commit/30853cd689efd73a005163436673c13a29eca805 DIFF: https://github.com/llvm/llvm-project/commit/30853cd689efd73a005163436673c13a29eca805.diff LOG: 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. Added: Modified: clang/include/clang/AST/ASTContext.h Removed: ################################################################################ diff --git a/clang/include/clang/AST/ASTContext.h b/clang/include/clang/AST/ASTContext.h index ac742fefc109..dc9198386514 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" _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits