Fix a bug in my previous commit

llvm-svn: 40719
This commit is contained in:
Chris Lattner 2007-08-02 04:22:39 +00:00
parent 016f19a37d
commit 6a340b4351
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ SourceLocation SourceManager::getInstantiationLoc(SourceLocation PhysLoc,
int PhysDelta = PhysLoc.getRawFilePos() - int PhysDelta = PhysLoc.getRawFilePos() -
LastOne.getPhysicalLoc().getRawFilePos(); LastOne.getPhysicalLoc().getRawFilePos();
if (SourceLocation::isValidMacroPhysOffs(PhysDelta)) if (SourceLocation::isValidMacroPhysOffs(PhysDelta))
return SourceLocation::getMacroLoc(MacroIDs.size()-1, PhysDelta, 0); return SourceLocation::getMacroLoc(i, PhysDelta, 0);
} }