projects
/
cparser
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b6f432
)
adapt to firm va_start changes
author
Matthias Braun
<matze@braunis.de>
Mon, 22 Aug 2011 14:17:25 +0000
(16:17 +0200)
committer
Matthias Braun
<matze@braunis.de>
Mon, 22 Aug 2011 14:17:25 +0000
(16:17 +0200)
ast2firm.c
patch
|
blob
|
history
diff --git
a/ast2firm.c
b/ast2firm.c
index
0d0d4d7
..
d9cf3f5
100644
(file)
--- a/
ast2firm.c
+++ b/
ast2firm.c
@@
-3214,9
+3214,7
@@
static ir_node *va_start_expression_to_firm(
{
ir_entity *param_ent = current_vararg_entity;
if (param_ent == NULL) {
- type_t *const type = current_function_entity->declaration.type;
- ir_type *const method_type = get_ir_type(type);
- size_t const n = get_method_n_params(method_type);
+ size_t const n = IR_VA_START_PARAMETER_NUMBER;
ir_type *const frame_type = get_irg_frame_type(current_ir_graph);
ir_type *const param_type = get_unknown_type();
param_ent = new_parameter_entity(frame_type, n, param_type);