github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code.
:warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff origin/main HEAD --extensions c,cpp --
clang/test/CodeGen/musttail-indirect-arg.c
clang/test/CodeGen/musttail-indirect-arg.cpp clang/lib/CodeGen/CGCall.cpp
--diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/CodeGen/CGCall.cpp b/clang/lib/CodeGen/CGCall.cpp
index 04774cc96..77a5949d6 100644
--- a/clang/lib/CodeGen/CGCall.cpp
+++ b/clang/lib/CodeGen/CGCall.cpp
@@ -5154,8 +5154,7 @@ void CodeGenFunction::EmitCallArg(CallArgList &args,
const Expr *E,
if (const auto *VD = dyn_cast<VarDecl>(DRE->getDecl())) {
if (VD->hasLocalStorage() ||
(isa<ParmVarDecl>(VD) &&
- VD->getDeclContext() ==
- dyn_cast<DeclContext>(CurCodeDecl))) {
+ VD->getDeclContext() == dyn_cast<DeclContext>(CurCodeDecl))) {
LValue L = EmitLValue(DRE);
assert(L.isSimple());
args.addUncopiedAggregate(L, type);
@@ -5722,8 +5721,7 @@ RValue CodeGenFunction::EmitCall(const CGFunctionInfo
&CallInfo,
LValue SrcLV = MakeAddrLValue(SrcAddr, Ty);
EmitAggregateCopy(ScratchLV, SrcLV, Ty,
AggValueSlot::DoesNotOverlap);
- LValue DstLV =
- MakeAddrLValue(Address(Dst, ElemTy, Align), Ty);
+ LValue DstLV = MakeAddrLValue(Address(Dst, ElemTy, Align), Ty);
MustTailIndirectCopies.push_back({ScratchLV, DstLV, Ty});
}
llvm::Value *Val = Dst;
``````````
</details>
https://github.com/llvm/llvm-project/pull/199351
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits