value = do_strict_conv(dbgi, value);
if(expression->type == EXPR_REFERENCE) {
- reference_expression_t *ref = (reference_expression_t*) expression;
+ const reference_expression_t *ref = &expression->reference;
declaration_t *declaration = ref->declaration;
assert(declaration->declaration_type != DECLARATION_TYPE_UNKNOWN);
dbg_info *const dbgi,
const create_arithmetic_func func)
{
- pointer_type_t *const pointer_type = (pointer_type_t*)type;
+ pointer_type_t *const pointer_type = &type->pointer;
type_t *const points_to = pointer_type->points_to;
const unsigned elem_size = get_type_size(points_to);
type_t *ref_type = skip_typeref(expression->array_ref->base.datatype);
assert(is_type_pointer(ref_type));
- pointer_type_t *pointer_type = (pointer_type_t*) ref_type;
+ pointer_type_t *pointer_type = &ref_type->pointer;
unsigned elem_size = get_type_size(pointer_type->points_to);
ir_node *elem_size_const = new_Const_long(mode_uint, elem_size);
statement_t *statement = expr->statement;
assert(statement->type == STATEMENT_COMPOUND);
- return compound_statement_to_firm((compound_statement_t*) statement);
+ return compound_statement_to_firm(&statement->compound);
}
static ir_node *va_start_expression_to_firm(
if(statement->base.next == NULL
&& statement->type == STATEMENT_EXPRESSION) {
result = expression_statement_to_firm(
- (expression_statement_t*) statement);
+ &statement->expression);
break;
}
statement_to_firm(statement);
case STATEMENT_COMPOUND: {
const compound_statement_t *const comp =
- (const compound_statement_t*)stmt;
+ &stmt->compound;
count += count_decls_in_stmts(comp->statements);
break;
}