summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d71d034)
A subsequent assertion checks more.
static ir_tarval *fold_constant_to_tarval(const expression_t *expression)
{
static ir_tarval *fold_constant_to_tarval(const expression_t *expression)
{
- assert(is_type_valid(skip_typeref(expression->base.type)));
+ assert(is_constant_expression(expression) == EXPR_CLASS_CONSTANT);
bool constant_folding_old = constant_folding;
constant_folding = true;
bool constant_folding_old = constant_folding;
constant_folding = true;
- assert(is_constant_expression(expression) == EXPR_CLASS_CONSTANT);
-
ir_graph *old_current_ir_graph = current_ir_graph;
current_ir_graph = get_const_code_irg();
ir_graph *old_current_ir_graph = current_ir_graph;
current_ir_graph = get_const_code_irg();