================ @@ -119,8 +119,6 @@ static Cl::Kinds ClassifyInternal(ASTContext &Ctx, const Expr *E) { // First come the expressions that are always lvalues, unconditionally. case Expr::ObjCIsaExprClass: - // C++ [expr.prim.general]p1: A string literal is an lvalue. - case Expr::StringLiteralClass: // @encode is equivalent to its string case Expr::ObjCEncodeExprClass: ---------------- efriedma-quic wrote:
I think we also need to handle ObjCEncodeExprClass the same way. https://github.com/llvm/llvm-project/pull/101447 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits