[IDE] Explicitly specify 'SerializedOK=false' to 'getRawComment()'

This ensures that we don't try getRawComment() from serialized locations

rdar://problem/75010520
This commit is contained in:
Rintaro Ishizaki
2021-03-18 17:00:54 -07:00
parent bd70bee1c8
commit c991347160
5 changed files with 5 additions and 5 deletions

View File

@@ -810,7 +810,7 @@ static SourceLoc getDeclStartPosition(SourceFile &File) {
for (auto D : File.getTopLevelDecls()) {
if (tryUpdateStart(D->getStartLoc())) {
tryUpdateStart(D->getAttrs().getStartLoc());
auto RawComment = D->getRawComment();
auto RawComment = D->getRawComment(/*SerializedOK=*/false);
if (!RawComment.isEmpty())
tryUpdateStart(RawComment.Comments.front().Range.getStart());
}