forked from OSchip/llvm-project
parent
630970ddb8
commit
d3b5d5d1df
|
@ -1600,12 +1600,10 @@ Parser::OwningExprResult Parser::ParseObjCStringLiteral(SourceLocation AtLoc) {
|
||||||
AtLocs.push_back(ConsumeToken()); // eat the @.
|
AtLocs.push_back(ConsumeToken()); // eat the @.
|
||||||
|
|
||||||
// Invalid unless there is a string literal.
|
// Invalid unless there is a string literal.
|
||||||
OwningExprResult Lit(Actions, true);
|
if (!isTokenStringLiteral())
|
||||||
if (isTokenStringLiteral())
|
return ExprError(Diag(Tok, diag::err_objc_concat_string));
|
||||||
Lit = ParseStringLiteralExpression();
|
|
||||||
else
|
|
||||||
Diag(Tok, diag::err_objc_concat_string);
|
|
||||||
|
|
||||||
|
OwningExprResult Lit(ParseStringLiteralExpression());
|
||||||
if (Lit.isInvalid())
|
if (Lit.isInvalid())
|
||||||
return move(Lit);
|
return move(Lit);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue