aboutsummaryrefslogtreecommitdiff
path: root/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-11-09 23:59:17 +0000
committerChris Lattner <sabre@nondot.org>2007-11-09 23:59:17 +0000
commit18807d2bfb9282a35b921b4feeda09ffaa110e6b (patch)
tree2ac563f99102b4c65f9810eb50de2417b366411a /Basic/SourceManager.cpp
parentb7489d8129136437953d412e2a6cf0ef87f4a461 (diff)
rename getInstantiationLoc to match the scheme of isPhysicalLoc.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@43969 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Basic/SourceManager.cpp')
-rw-r--r--Basic/SourceManager.cpp2
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;