Skip to content

Commit e9e958b

Browse files
committed
Finish thought in a comment
1 parent f36d2d3 commit e9e958b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Basic/SourceLoc.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,8 @@ SourceManager::findBufferContainingLocInternal(SourceLoc Loc) const {
512512
Loc,
513513
BufferIDRangeComparison{this});
514514

515-
// If we didn't find
515+
// If the location was past the range covered by source buffers or
516+
// is not within any of the source buffers, fail.
516517
if (found == LocCache.sortedBuffers.end() || !isInBuffer(*found))
517518
return llvm::None;
518519

0 commit comments

Comments
 (0)