Skip to content

Commit bd09d0c

Browse files
committed
[ConstraintSystem] Switch ConstraintFix to use ASTNode instead of TypedNode
1 parent 0b4404b commit bd09d0c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/Sema/CSFix.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ using namespace constraints;
3434

3535
ConstraintFix::~ConstraintFix() {}
3636

37-
TypedNode ConstraintFix::getAnchor() const { return getLocator()->getAnchor(); }
37+
ASTNode ConstraintFix::getAnchor() const { return getLocator()->getAnchor(); }
3838

3939
void ConstraintFix::print(llvm::raw_ostream &Out) const {
4040
Out << "[fix: ";

lib/Sema/CSFix.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#define SWIFT_SEMA_CSFIX_H
1919

2020
#include "ConstraintLocator.h"
21+
#include "swift/AST/ASTNode.h"
2122
#include "swift/AST/Decl.h"
2223
#include "swift/AST/Expr.h"
2324
#include "swift/AST/Identifier.h"
@@ -313,7 +314,7 @@ class ConstraintFix {
313314
/// Retrieve anchor expression associated with this fix.
314315
/// NOTE: such anchor comes directly from locator without
315316
/// any simplication attempts.
316-
TypedNode getAnchor() const;
317+
ASTNode getAnchor() const;
317318
ConstraintLocator *getLocator() const { return Locator; }
318319

319320
protected:

0 commit comments

Comments
 (0)