diff options
author | Chris Lattner <sabre@nondot.org> | 2010-11-17 06:26:08 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-11-17 06:26:08 +0000 |
commit | 91f54ce93bec136fb9e18740b895cf1c1339524b (patch) | |
tree | a3472d0a675237708c540d1ce1d34399eabbb5fc /lib/Sema/SemaChecking.cpp | |
parent | 0aac2ba128eb0c4b7ad5e0e28a6fa55091bfad2e (diff) |
refactor the interface to StringLiteralParser::getOffsetOfStringByte,
pushing the dependency on the preprocessor out a bit.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119468 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaChecking.cpp')
-rw-r--r-- | lib/Sema/SemaChecking.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/SemaChecking.cpp b/lib/Sema/SemaChecking.cpp index bce28c2c91..c33eba9fab 100644 --- a/lib/Sema/SemaChecking.cpp +++ b/lib/Sema/SemaChecking.cpp @@ -91,7 +91,7 @@ SourceLocation Sema::getLocationOfStringLiteralByte(const StringLiteral *SL, (ByteNo == TokNumBytes && TokNo == SL->getNumConcatenated())) { unsigned Offset = StringLiteralParser::getOffsetOfStringByte(TheTok, ByteNo, PP, - /*Complain=*/false); + PP.getTargetInfo()); // Now that we know the offset of the token in the spelling, use the // preprocessor to get the offset in the original source. |