Remove duplicate assertion.
authorChristoph Mallon <christoph.mallon@gmx.de>
Tue, 17 Apr 2012 10:31:58 +0000 (12:31 +0200)
committerChristoph Mallon <christoph.mallon@gmx.de>
Tue, 17 Apr 2012 10:32:29 +0000 (12:32 +0200)
The subsequent call to fold_constant_to_tarval() checks the same.

ast2firm.c

index f5b010a..4fe0c05 100644 (file)
@@ -3028,7 +3028,6 @@ static ir_tarval *fold_constant_to_tarval(const expression_t *expression)
 /* this function is only used in parser.c, but it relies on libfirm functionality */
 bool constant_is_negative(const expression_t *expression)
 {
-       assert(is_constant_expression(expression) == EXPR_CLASS_CONSTANT);
        ir_tarval *tv = fold_constant_to_tarval(expression);
        return tarval_is_negative(tv);
 }