so translate the range to file locations.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147058
91177308-0d34-0410-b5e6-
96231b3b80d8
if (!Visitor.shouldVisitIncludedEntities()) {
// If the begin/end of the range lie in the same FileID, do the optimization
// where we skip preprocessed entities that do not come from the same FileID.
- FID = SM.getFileID(R.getBegin());
- if (FID != SM.getFileID(R.getEnd()))
+ FID = SM.getFileID(SM.getFileLoc(R.getBegin()));
+ if (FID != SM.getFileID(SM.getFileLoc(R.getEnd())))
FID = FileID();
}