tbaeder added inline comments.
================ Comment at: clang/lib/AST/ExprConstant.cpp:1925 if (This && IsMemberCall) { - APValue Val; - This->moveInto(Val); - Val.printPretty(Out, Info.Ctx, - This->Designator.MostDerivedType); - // FIXME: Add parens around Val if needed. - Out << "->" << *Callee << '('; + if (const auto *MCE = dyn_cast_or_null<CXXMemberCallExpr>(CallExpr)) { + const Expr *Object = MCE->getImplicitObjectArgument(); ---------------- ================ Comment at: clang/lib/AST/ExprConstant.cpp:1933 + } else if (const auto *OCE = + dyn_cast_or_null<CXXOperatorCallExpr>(CallExpr)) { + OCE->getArg(0)->printPretty(Out, nullptr, Info.Ctx.getPrintingPolicy(), ---------------- CHANGES SINCE LAST ACTION https://reviews.llvm.org/D151720/new/ https://reviews.llvm.org/D151720 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits