Skip to content

Commit a7548e6

Browse files
committed
[AST] Drop unnecessary friend declaration
Summary: The friend declaration wasn't qualified (it should have included the namespace, i.e. `syntax::LegacyASTTransformer`). The effect was instead to declare a `LegacyASTTransformer` inside the `swift` namespace, which would then trip up Windows compilation because of non-conforming two-phase lookup. The implication is that the friend declaration is actually unneeded, since the incorrect declaration wasn't causing any other problems, so we can just drop it.
1 parent 787fe55 commit a7548e6

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

include/swift/AST/SyntaxASTMap.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ namespace syntax {
3535
/// a mapping from lib/AST nodes to lib/Syntax nodes while we integrate
3636
/// the infrastructure into the compiler.
3737
class SyntaxASTMap final {
38-
friend class LegacyASTTransformer;
3938
llvm::DenseMap<RC<syntax::SyntaxData>, ASTNode> SyntaxMap;
4039
public:
4140

0 commit comments

Comments
 (0)