[clang] Extend life of variables in `DiagComparison` in `ExprConstant` (PR #79522)

via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 25 15:36:07 PST 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 e8a5010c0338357c08c740de121b660aa933d5f4 804b9c1bf634585537306ac092508e7eb4e7ca60 -- clang/lib/AST/ExprConstant.cpp
``````````

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp
index 75cd16c0ae..579f38648b 100644
--- a/clang/lib/AST/ExprConstant.cpp
+++ b/clang/lib/AST/ExprConstant.cpp
@@ -13297,8 +13297,8 @@ EvaluateComparisonBinaryOperator(EvalInfo &Info, const BinaryOperator *E,
         // Or potentially use of freed memory may happen. Therefore, further
         // investigation is required to ensure that making those variables
         // static effectively resolves the problem.
-        // We should investigate why buildbots were failing with ASan short string
-        // annotations turned on. Related PR:
+        // We should investigate why buildbots were failing with ASan short
+        // string annotations turned on. Related PR:
         // https://github.com/llvm/llvm-project/pull/79049
         LHS = LHSValue.toString(Info.Ctx, E->getLHS()->getType());
         RHS = RHSValue.toString(Info.Ctx, E->getRHS()->getType());

``````````

</details>


https://github.com/llvm/llvm-project/pull/79522


More information about the cfe-commits mailing list