Skip to content

Commit 64dcfdf

Browse files
committed
Fix call location of DefaultArgExpr.
1 parent e529681 commit 64dcfdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/lib/Sema/SemaExpr.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5948,7 +5948,7 @@ Sema::ConvertArgumentsForCall(CallExpr *Call, Expr *Fn,
59485948
SmallVector<Expr *, 8> AllArgs;
59495949
VariadicCallType CallType = getVariadicCallType(FDecl, Proto, Fn);
59505950

5951-
Invalid = GatherArgumentsForCall(Call->getBeginLoc(), FDecl, Proto, 0, Args,
5951+
Invalid = GatherArgumentsForCall(Call->getExprLoc(), FDecl, Proto, 0, Args,
59525952
AllArgs, CallType);
59535953
if (Invalid)
59545954
return true;

0 commit comments

Comments
 (0)