[clang] [Clang] Fix wrong call location of `DefaultArgExpr`. (PR #119212)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Dec 9 05:59:50 PST 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: ykiko (16bit-ykiko)
<details>
<summary>Changes</summary>
Fix https://github.com/llvm/llvm-project/issues/119129.
---
Full diff: https://github.com/llvm/llvm-project/pull/119212.diff
1 Files Affected:
- (modified) clang/lib/Sema/SemaExpr.cpp (+1-1)
``````````diff
diff --git a/clang/lib/Sema/SemaExpr.cpp b/clang/lib/Sema/SemaExpr.cpp
index 14564b99de44c5..9b543d6484b85c 100644
--- a/clang/lib/Sema/SemaExpr.cpp
+++ b/clang/lib/Sema/SemaExpr.cpp
@@ -5948,7 +5948,7 @@ Sema::ConvertArgumentsForCall(CallExpr *Call, Expr *Fn,
SmallVector<Expr *, 8> AllArgs;
VariadicCallType CallType = getVariadicCallType(FDecl, Proto, Fn);
- Invalid = GatherArgumentsForCall(Call->getBeginLoc(), FDecl, Proto, 0, Args,
+ Invalid = GatherArgumentsForCall(Call->getExprLoc(), FDecl, Proto, 0, Args,
AllArgs, CallType);
if (Invalid)
return true;
``````````
</details>
https://github.com/llvm/llvm-project/pull/119212
More information about the cfe-commits
mailing list