Skip to content

Commit e93d498

Browse files
committed
Fix bug on getting Location for try token.
1 parent 37aaaed commit e93d498

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Parse/ParsePattern.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ Parser::parseFunctionSignature(Identifier SimpleName,
788788
.fixItReplace(throwsLoc, "throws");
789789
} else if (Tok.is(tok::kw_try)) {
790790
diagnose(Tok.getLoc(), diag::throw_in_function_type)
791-
.fixItReplace(tryLoc, "throws");
791+
.fixItReplace(Tok.getLoc(), "throws");
792792
ignoreToken();
793793
}
794794

0 commit comments

Comments
 (0)