/*
- * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved.
+ * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
if (op == op_SymConst && get_SymConst_kind(n) == symconst_addr_ent)
return 1;
if (op == op_Const) {
- tarval *tv = get_Const_tarval(n);
-
- if (tv != tarval_bad && !tarval_is_null(tv))
+ if (!is_Const_null(n))
return 1;
} else {
for (; is_Confirm(n); n = skip_Cast(get_Confirm_value(n))) {
- if (get_Confirm_cmp(n) == pn_Cmp_Lg &&
- classify_Const(get_Confirm_bound(n)) == CNST_NULL) {
+ if (get_Confirm_cmp(n) != pn_Cmp_Lg) {
+ ir_node *bound = get_Confirm_bound(n);
+ if (is_Const(bound) && is_Const_null(bound)) {
*confirm = n;
return 1;
+ }
}
}
}