jkorous created this revision. jkorous added reviewers: rsmith, vsapsai, JDevlieghere. jkorous added a project: clang. Herald added subscribers: cfe-commits, dexonsmith.
Since there's no change to ArgExprs between here and the previous early exit starting at L 5333 it's effectively a dead code. On the other hand a possible counter-argument is that code gets a bit more brittle. WDYT? Repository: rC Clang https://reviews.llvm.org/D51488 Files: Sema/SemaExpr.cpp Index: Sema/SemaExpr.cpp =================================================================== --- Sema/SemaExpr.cpp +++ Sema/SemaExpr.cpp @@ -5369,9 +5369,6 @@ // We aren't supposed to apply this logic if there's an '&' involved. if (!find.HasFormOfMemberPointer) { - if (Expr::hasAnyTypeDependentArguments(ArgExprs)) - return new (Context) CallExpr( - Context, Fn, ArgExprs, Context.DependentTy, VK_RValue, RParenLoc); OverloadExpr *ovl = find.Expression; if (UnresolvedLookupExpr *ULE = dyn_cast<UnresolvedLookupExpr>(ovl)) return BuildOverloadedCallExpr(
Index: Sema/SemaExpr.cpp =================================================================== --- Sema/SemaExpr.cpp +++ Sema/SemaExpr.cpp @@ -5369,9 +5369,6 @@ // We aren't supposed to apply this logic if there's an '&' involved. if (!find.HasFormOfMemberPointer) { - if (Expr::hasAnyTypeDependentArguments(ArgExprs)) - return new (Context) CallExpr( - Context, Fn, ArgExprs, Context.DependentTy, VK_RValue, RParenLoc); OverloadExpr *ovl = find.Expression; if (UnresolvedLookupExpr *ULE = dyn_cast<UnresolvedLookupExpr>(ovl)) return BuildOverloadedCallExpr(
_______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits