diff options
author | Dmitri Gribenko <gribozavr@gmail.com> | 2012-09-24 21:07:17 +0000 |
---|---|---|
committer | Dmitri Gribenko <gribozavr@gmail.com> | 2012-09-24 21:07:17 +0000 |
commit | 374b3837d676133fcc1eb70a25c8baf8ec4a5c4a (patch) | |
tree | fb675ffb0464d2ad8a8bd3faf9aaa48d4705d336 /lib/Lex/Lexer.cpp | |
parent | 33d054b0932b1ed5d2b30e41946f6aec5030c12e (diff) |
StringRef'ize Preprocessor::CreateString().
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@164555 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/Lexer.cpp')
-rw-r--r-- | lib/Lex/Lexer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Lex/Lexer.cpp b/lib/Lex/Lexer.cpp index ebb3b6a9a2..6ac3f3fafc 100644 --- a/lib/Lex/Lexer.cpp +++ b/lib/Lex/Lexer.cpp @@ -2048,7 +2048,7 @@ bool Lexer::SaveBCPLComment(Token &Result, const char *CurPtr) { Spelling += "*/"; // add suffix. Result.setKind(tok::comment); - PP->CreateString(&Spelling[0], Spelling.size(), Result, + PP->CreateString(Spelling, Result, Result.getLocation(), Result.getLocation()); return true; } |