mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Merge pull request #36994 from ahoppen/pr/refactor-protocol-requirement-async
[Refactoring] Fix crash when refactoring protocol requirement to async
This commit is contained in:
@@ -4906,7 +4906,7 @@ private:
|
||||
RightStartLoc = Lexer::getLocForEndOfToken(SM, FD->getThrowsLoc());
|
||||
}
|
||||
SourceLoc RightEndLoc =
|
||||
FD->getBody() ? FD->getBody()->getLBraceLoc() : FD->getEndLoc();
|
||||
FD->getBody() ? FD->getBody()->getLBraceLoc() : RightStartLoc;
|
||||
addRange(RightStartLoc, RightEndLoc);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user