[clang] [clang][cleanup] simplify ReachableCode scanFromBlock (PR #72257)
via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 14 05:57:16 PST 2023
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 daddf402d9a4e3bacc37098d990e56dc9957ca3e 52b0204fec8394f9c2cfaeb3cc4f28e5d4c16170 -- clang/lib/Analysis/ReachableCode.cpp
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/clang/lib/Analysis/ReachableCode.cpp b/clang/lib/Analysis/ReachableCode.cpp
index 9c9e1a0fff..257fb19e0f 100644
--- a/clang/lib/Analysis/ReachableCode.cpp
+++ b/clang/lib/Analysis/ReachableCode.cpp
@@ -345,7 +345,7 @@ static unsigned scanFromBlock(const CFGBlock *Start,
if (IncludeSometimesUnreachableEdges) {
assert(PP);
TreatAllSuccessorsAsReachable =
- shouldTreatSuccessorsAsReachable(item, *PP);
+ shouldTreatSuccessorsAsReachable(item, *PP);
} else {
TreatAllSuccessorsAsReachable = false;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/72257
More information about the cfe-commits
mailing list