================
@@ -1901,9 +1903,8 @@ class SourceManager : public
RefCountedBase<SourceManager> {
FileID getFileID(SourceLocation::UIntTy SLocOffset) const {
// If our one-entry cache covers this offset, just return it.
- if (isOffsetInFileID(LastFileIDLookup, SLocOffset))
+ if (SLocOffset >= LastLookupStartOffset && SLocOffset <
LastLookupEndOffset)
----------------
hokein wrote:
good idea!
https://github.com/llvm/llvm-project/pull/146782
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits