aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema/SemaChecking.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-11-17 07:21:13 +0000
committerChris Lattner <sabre@nondot.org>2010-11-17 07:21:13 +0000
commit0833dd0675c25cbb35671c7a2006d511d5c77ce3 (patch)
tree8215371d24ebb80e10948ffb89af5e341dea9098 /lib/Sema/SemaChecking.cpp
parenta95880d6513c617bb96634bcc1f16c6bdb80dedc (diff)
propagate preprocessor out of StringLiteralParser. It is now
possible to create one without a preprocessor. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119476 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaChecking.cpp')
-rw-r--r--lib/Sema/SemaChecking.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Sema/SemaChecking.cpp b/lib/Sema/SemaChecking.cpp
index fb231731b9..0fa1fc18e3 100644
--- a/lib/Sema/SemaChecking.cpp
+++ b/lib/Sema/SemaChecking.cpp
@@ -83,8 +83,8 @@ SourceLocation Sema::getLocationOfStringLiteralByte(const StringLiteral *SL,
TheLexer.LexFromRawLexer(TheTok);
// Use the StringLiteralParser to compute the length of the string in bytes.
- StringLiteralParser SLP(&TheTok, 1, PP, /*Complain=*/false);
- // PP.getSourceManager(), PP.getLangOptions(), PP.getTargetInfo());
+ StringLiteralParser SLP(&TheTok, 1, PP.getSourceManager(),
+ PP.getLangOptions(), PP.getTargetInfo());
unsigned TokNumBytes = SLP.GetStringLength();
// If the byte is in this token, return the location of the byte.