[llvm] [DomFrontier] Fix precedence in assert. NFC (PR #182239)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 19 01:46:40 PST 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-analysis
Author: David Green (davemgreen)
<details>
<summary>Changes</summary>
This fixes the warning about parentheses around ‘&&’ within ‘||’, until DFs with multiple roots are supported.
---
Full diff: https://github.com/llvm/llvm-project/pull/182239.diff
1 Files Affected:
- (modified) llvm/include/llvm/Analysis/DominanceFrontier.h (+2-2)
``````````diff
diff --git a/llvm/include/llvm/Analysis/DominanceFrontier.h b/llvm/include/llvm/Analysis/DominanceFrontier.h
index 4af1ce46b6ae2..829afefa43091 100644
--- a/llvm/include/llvm/Analysis/DominanceFrontier.h
+++ b/llvm/include/llvm/Analysis/DominanceFrontier.h
@@ -101,8 +101,8 @@ class DominanceFrontierBase {
#endif
void analyze(DomTreeT &DT) {
- assert(IsPostDom || DT.root_size() == 1 &&
- "Only one entry block for forward domfronts!");
+ assert((IsPostDom || DT.root_size() == 1) &&
+ "Only one entry block for forward domfronts!");
assert(DT.root_size() == 1 &&
"Support for post-dom frontiers with multiple roots hasn't been "
"implemented yet!");
``````````
</details>
https://github.com/llvm/llvm-project/pull/182239
More information about the llvm-commits
mailing list