We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e01f234 + e9e958b commit 0814849Copy full SHA for 0814849
lib/Basic/SourceLoc.cpp
@@ -512,7 +512,8 @@ SourceManager::findBufferContainingLocInternal(SourceLoc Loc) const {
512
Loc,
513
BufferIDRangeComparison{this});
514
515
- // If we didn't find
+ // If the location was past the range covered by source buffers or
516
+ // is not within any of the source buffers, fail.
517
if (found == LocCache.sortedBuffers.end() || !isInBuffer(*found))
518
return llvm::None;
519
0 commit comments