[llvm] [DomTree] Fix root attachment in runDFS() (PR #73148)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 22 09:35:50 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 1dd387e10624ece478759ec95c18545d051b7dbe 4629882890d6ac2f0c81231022708c261904e1ad -- llvm/include/llvm/Support/GenericDomTreeConstruction.h
``````````
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/llvm/include/llvm/Support/GenericDomTreeConstruction.h b/llvm/include/llvm/Support/GenericDomTreeConstruction.h
index 0a70648c9e..06b3540ac2 100644
--- a/llvm/include/llvm/Support/GenericDomTreeConstruction.h
+++ b/llvm/include/llvm/Support/GenericDomTreeConstruction.h
@@ -553,7 +553,8 @@ struct SemiNCAInfo {
addVirtualRoot();
unsigned Num = 1;
- for (const NodePtr Root : DT.Roots) Num = runDFS(Root, Num, DC, 1);
+ for (const NodePtr Root : DT.Roots)
+ Num = runDFS(Root, Num, DC, 1);
}
static void CalculateFromScratch(DomTreeT &DT, BatchUpdatePtr BUI) {
``````````
</details>
https://github.com/llvm/llvm-project/pull/73148
More information about the llvm-commits
mailing list