projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2915e60
)
Remove duplicate assertion.
author
Christoph Mallon
<christoph.mallon@gmx.de>
Tue, 17 Apr 2012 10:31:58 +0000
(12:31 +0200)
committer
Christoph 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
patch
|
blob
|
history
diff --git
a/ast2firm.c
b/ast2firm.c
index
f5b010a
..
4fe0c05
100644
(file)
--- a/
ast2firm.c
+++ b/
ast2firm.c
@@
-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);
}