summaryrefslogtreecommitdiff
path: root/lib/AST
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@gmail.com>2014-06-26 04:58:39 +0000
committerCraig Topper <craig.topper@gmail.com>2014-06-26 04:58:39 +0000
commitba3d7511363852fe6969bba7f3be128b3a49d576 (patch)
tree505b6fd725a92a3c05123a53506e1723c88d39a6 /lib/AST
parent3e833a8a8c90b1e9eedb995413a79b4259be90ab (diff)
downloadclang-ba3d7511363852fe6969bba7f3be128b3a49d576.tar.gz
clang-ba3d7511363852fe6969bba7f3be128b3a49d576.tar.bz2
clang-ba3d7511363852fe6969bba7f3be128b3a49d576.tar.xz
Convert StringLiteralParser constructor to use ArrayRef instead of a pointer and count.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211763 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST')
-rw-r--r--lib/AST/Expr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/AST/Expr.cpp b/lib/AST/Expr.cpp
index 7e1b2d9436..0cc046c6d2 100644
--- a/lib/AST/Expr.cpp
+++ b/lib/AST/Expr.cpp
@@ -998,7 +998,7 @@ getLocationOfByte(unsigned ByteNo, const SourceManager &SM,
TheLexer.LexFromRawLexer(TheTok);
// Use the StringLiteralParser to compute the length of the string in bytes.
- StringLiteralParser SLP(&TheTok, 1, SM, Features, Target);
+ StringLiteralParser SLP(TheTok, SM, Features, Target);
unsigned TokNumBytes = SLP.GetStringLength();
// If the byte is in this token, return the location of the byte.