expression_classification_t const lclass = is_constant_expression(left);
if (lclass != EXPR_CLASS_CONSTANT)
return lclass;
- if (fold_constant_to_bool(left) == false)
+ if (!fold_constant_to_bool(left))
return EXPR_CLASS_CONSTANT;
return is_constant_expression(expression->binary.right);
}
expression_classification_t const lclass = is_constant_expression(left);
if (lclass != EXPR_CLASS_CONSTANT)
return lclass;
- if (fold_constant_to_bool(left) == true)
+ if (fold_constant_to_bool(left))
return EXPR_CLASS_CONSTANT;
return is_constant_expression(expression->binary.right);
}
if (cclass != EXPR_CLASS_CONSTANT)
return cclass;
- if (fold_constant_to_bool(condition) == true) {
+ if (fold_constant_to_bool(condition)) {
expression_t const *const t = expression->conditional.true_expression;
return t == NULL ? EXPR_CLASS_CONSTANT : is_constant_expression(t);
} else {
if (is_builtin_expect(expression) && is_Cond(cond)) {
call_argument_t *argument = expression->call.arguments->next;
if (is_constant_expression(argument->expression) == EXPR_CLASS_CONSTANT) {
- bool cnst = fold_constant_to_bool(argument->expression);
- cond_jmp_predicate pred;
-
- if (cnst == false) {
- pred = COND_JMP_PRED_FALSE;
- } else {
- pred = COND_JMP_PRED_TRUE;
- }
+ bool const cnst = fold_constant_to_bool(argument->expression);
+ cond_jmp_predicate const pred = cnst ? COND_JMP_PRED_TRUE : COND_JMP_PRED_FALSE;
set_Cond_jmp_pred(cond, pred);
}
}
profile_generate = truth_value;
} else if (streq(opt, "profile-use")) {
profile_use = truth_value;
- } else if (truth_value == false &&
+ } else if (!truth_value &&
streq(opt, "asynchronous-unwind-tables")) {
/* nothing todo, a gcc feature which we don't support
* anyway was deactivated */