diff options
-rw-r--r-- | lib/Parse/ParseObjc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Parse/ParseObjc.cpp b/lib/Parse/ParseObjc.cpp index e0f9e2907b..6861ce940f 100644 --- a/lib/Parse/ParseObjc.cpp +++ b/lib/Parse/ParseObjc.cpp @@ -599,7 +599,7 @@ IdentifierInfo *Parser::ParseObjCSelectorPiece(SourceLocation &SelectorLoc) { case tok::pipeequal: case tok::caret: case tok::caretequal: { - llvm::StringRef ThisTok = PP.getSpelling(Tok); + std::string ThisTok(PP.getSpelling(Tok)); if (isalpha(ThisTok[0])) { IdentifierInfo *II = &PP.getIdentifierTable().get(ThisTok.data()); Tok.setKind(tok::identifier); |