summaryrefslogtreecommitdiffhomepage
path: root/ir/ana
diff options
context:
space:
mode:
authorChristoph Mallon <christoph.mallon@gmx.de>2016-11-04 16:27:43 +0100
committerChristoph Mallon <christoph.mallon@gmx.de>2016-11-04 16:32:41 +0100
commit9bcf83b3c7d1b844180746c6470c8f3eaf23863a (patch)
treef294a473240fc7594410f5b86dac4d1fc9545d6a /ir/ana
parent731a6fc90fb0a66b068c0c0c67547c837b2fae78 (diff)
ir: Factor out 'is_Const(x) && is_Const_null(x)' into the new function 'is_irn_null()'.
Diffstat (limited to 'ir/ana')
-rw-r--r--ir/ana/irconsconfirm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir/ana/irconsconfirm.c b/ir/ana/irconsconfirm.c
index 7529a15..d7ced6b 100644
--- a/ir/ana/irconsconfirm.c
+++ b/ir/ana/irconsconfirm.c
@@ -431,7 +431,7 @@ static bool is_non_null_Confirm(const ir_node *ptr)
if (get_Confirm_relation(ptr) == ir_relation_less_greater) {
ir_node *bound = get_Confirm_bound(ptr);
- if (is_Const(bound) && is_Const_null(bound))
+ if (is_irn_null(bound))
return true;
}
ptr = get_Confirm_value(ptr);