]> granicus.if.org Git - clang/commitdiff
Fix a bug in my previous commit
authorChris Lattner <sabre@nondot.org>
Thu, 2 Aug 2007 04:22:39 +0000 (04:22 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 2 Aug 2007 04:22:39 +0000 (04:22 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@40719 91177308-0d34-0410-b5e6-96231b3b80d8

Basic/SourceManager.cpp

index 05d58cf79e64a26833c82d7ab5ef052bc76f5273..4d525fc2bd0245430c1ab56a16f55663cad7d35a 100644 (file)
@@ -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);
   }