diff options
Diffstat (limited to 'Basic/SourceManager.cpp')
-rw-r--r-- | Basic/SourceManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Basic/SourceManager.cpp b/Basic/SourceManager.cpp index 74e88c18dc..03fa203b2e 100644 --- a/Basic/SourceManager.cpp +++ b/Basic/SourceManager.cpp @@ -185,7 +185,7 @@ SourceLocation SourceManager::getInstantiationLoc(SourceLocation PhysLoc, // The instanitation point and source physloc have to exactly match to reuse // (for now). We could allow "nearby" instantiations in the future. - if (LastOne.getInstantiationLoc() != InstantLoc || + if (LastOne.getVirtualLoc() != InstantLoc || LastOne.getPhysicalLoc().getFileID() != PhysLoc.getFileID()) continue; |