mirror of
https://github.com/intel/llvm.git
synced 2026-02-04 20:00:11 +08:00
Fix a bug in my previous commit
llvm-svn: 40719
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user