aboutsummaryrefslogtreecommitdiff
path: root/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-08-02 04:22:39 +0000
committerChris Lattner <sabre@nondot.org>2007-08-02 04:22:39 +0000
commitc1e50fc734e14e92681132495d531115ff08c032 (patch)
treebe83ec9dc87741f76e3011954cae4639a4750c1b /Basic/SourceManager.cpp
parent4cabcfea26bc3465d8723fe7997ab4a1a657aea8 (diff)
Fix a bug in my previous commit
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40719 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 05d58cf79e..4d525fc2bd 100644
--- a/Basic/SourceManager.cpp
+++ b/Basic/SourceManager.cpp
@@ -192,7 +192,7 @@ SourceLocation SourceManager::getInstantiationLoc(SourceLocation PhysLoc,
int PhysDelta = PhysLoc.getRawFilePos() -
LastOne.getPhysicalLoc().getRawFilePos();
if (SourceLocation::isValidMacroPhysOffs(PhysDelta))
- return SourceLocation::getMacroLoc(MacroIDs.size()-1, PhysDelta, 0);
+ return SourceLocation::getMacroLoc(i, PhysDelta, 0);
}