[clang] [clang][dataflow] Fix crash when analyzing a coroutine (PR #85957)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Mar 20 09:25:38 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 a9fe23cde3ee554f4bd6118edcc2e747f3a8d8d5 386e7dea15739df65ad9ecb3dd7f7dcd23b6acae -- clang/lib/Analysis/FlowSensitive/AdornedCFG.cpp clang/unittests/Analysis/FlowSensitive/TransferTest.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/unittests/Analysis/FlowSensitive/TransferTest.cpp b/clang/unittests/Analysis/FlowSensitive/TransferTest.cpp
index 2dc01a6552..b8f8f1ada2 100644
--- a/clang/unittests/Analysis/FlowSensitive/TransferTest.cpp
+++ b/clang/unittests/Analysis/FlowSensitive/TransferTest.cpp
@@ -4667,7 +4667,8 @@ TEST(TransferTest, DoesNotCrashOnNullChildren) {
task foo() noexcept {
co_return;
}
- )cc").str();
+ )cc")
+ .str();
// This is a crash regression test when calling `AdornedCFG::build` on a
// statement (in this case, the `CoroutineBodyStmt`) with null children.
runDataflow(
``````````
</details>
https://github.com/llvm/llvm-project/pull/85957
More information about the cfe-commits
mailing list