forked from OSchip/llvm-project
Fix getLocForEndOfToken to not double-count spurious internal characters
within a token, like trigraphs and escaped newlines. Patch by Marcin Kowalczyk! llvm-svn: 128978
This commit is contained in:
parent
0ec0e98a6a
commit
75ca6d72c2
|
@ -674,7 +674,7 @@ SourceLocation Lexer::getLocForEndOfToken(SourceLocation Loc, unsigned Offset,
|
|||
else
|
||||
return Loc;
|
||||
|
||||
return AdvanceToTokenCharacter(Loc, Len, SM, Features);
|
||||
return Loc.getFileLocWithOffset(Len);
|
||||
}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
|
Loading…
Reference in New Issue