================ @@ -7653,8 +7653,11 @@ ExprResult Sema::TemporaryMaterializationConversion(Expr *E) { // In C++98, we don't want to implicitly create an xvalue. // FIXME: This means that AST consumers need to deal with "prvalues" that // denote materialized temporaries. Maybe we should add another ValueKind - // for "xvalue pretending to be a prvalue" for C++98 support. - if (!E->isPRValue() || !getLangOpts().CPlusPlus11) + // for "xvalue pretending to be a prvalue" for C++98 support. C11 added the ---------------- AaronBallman wrote:
Good call, done https://github.com/llvm/llvm-project/pull/133472 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits