Attempt to fix build with MSVC.
authorRichard Smith <richard@metafoo.co.uk>
Wed, 15 Apr 2020 20:26:22 +0000 (13:26 -0700)
committerRichard Smith <richard@metafoo.co.uk>
Wed, 15 Apr 2020 20:28:24 +0000 (13:28 -0700)
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

index ac742fe..dc91983 100644 (file)
@@ -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"