[clang] Resolve FIXME: Look at E, not M. (PR #85541)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Mar 16 11:46:13 PDT 2024
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 c51095f51b770f0663b65dd8a651601fca15701e e4af1febaa05e2749947b7cd406d65df5a1a7539 -- clang/lib/CodeGen/CGExpr.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp
index 0b8f43dab8..2f664ad302 100644
--- a/clang/lib/CodeGen/CGExpr.cpp
+++ b/clang/lib/CodeGen/CGExpr.cpp
@@ -316,13 +316,12 @@ pushTemporaryCleanup(CodeGenFunction &CGF, const MaterializeTemporaryExpr *M,
Destroy = &CodeGenFunction::destroyARCWeak;
}
if (Duration == SD_FullExpression)
- CGF.pushDestroy(CleanupKind, ReferenceTemporary,
- E->getType(), *Destroy,
- CleanupKind & EHCleanup);
+ CGF.pushDestroy(CleanupKind, ReferenceTemporary, E->getType(),
+ *Destroy, CleanupKind & EHCleanup);
else
CGF.pushLifetimeExtendedDestroy(CleanupKind, ReferenceTemporary,
- E->getType(),
- *Destroy, CleanupKind & EHCleanup);
+ E->getType(), *Destroy,
+ CleanupKind & EHCleanup);
return;
case SD_Dynamic:
``````````
</details>
https://github.com/llvm/llvm-project/pull/85541
More information about the cfe-commits
mailing list