[llvm] [DomFrontier] Fix precedence in assert. NFC (PR #182239)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 19 01:46:07 PST 2026
https://github.com/davemgreen created https://github.com/llvm/llvm-project/pull/182239
This fixes the warning about parentheses around ‘&&’ within ‘||’, until DFs with multiple roots are supported.
>From 87d14357114e0eb881ae83b5c41620d22af3f6b8 Mon Sep 17 00:00:00 2001
From: David Green <david.green at arm.com>
Date: Thu, 19 Feb 2026 09:44:10 +0000
Subject: [PATCH] [DomFrontier] Fix precedence in assert. NFC
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This fixes the warning about parentheses around ‘&&’ within ‘||’, until DFs
with multiple roots are supported.
---
llvm/include/llvm/Analysis/DominanceFrontier.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
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!");
More information about the llvm-commits
mailing list