summaryrefslogtreecommitdiffstats
path: root/clang/Basic
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
commit6a340b43518950ef735467bebc019daaf6eb0144 (patch)
tree9ccc2bf9c204183638787fcd1f3b6b3ba4583836 /clang/Basic
parent016f19a37d9eec705e44afcd40999def8a9af1dd (diff)
downloadbcm5719-llvm-6a340b43518950ef735467bebc019daaf6eb0144.tar.gz
bcm5719-llvm-6a340b43518950ef735467bebc019daaf6eb0144.zip
Fix a bug in my previous commit
llvm-svn: 40719
Diffstat (limited to 'clang/Basic')
-rw-r--r--clang/Basic/SourceManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/Basic/SourceManager.cpp b/clang/Basic/SourceManager.cpp
index 05d58cf79e6..4d525fc2bd0 100644
--- a/clang/Basic/SourceManager.cpp
+++ b/clang/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);
}
OpenPOWER on IntegriCloud