projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7817e4
)
more asserts
author
Matthias Braun
<matze@braunis.de>
Thu, 19 Jul 2007 17:06:39 +0000
(17:06 +0000)
committer
Matthias Braun
<matze@braunis.de>
Thu, 19 Jul 2007 17:06:39 +0000
(17:06 +0000)
[r15264]
ir/be/beabi.c
patch
|
blob
|
history
diff --git
a/ir/be/beabi.c
b/ir/be/beabi.c
index
3f230b5
..
16a9c6b
100644
(file)
--- a/
ir/be/beabi.c
+++ b/
ir/be/beabi.c
@@
-608,6
+608,7
@@
static ir_node *adjust_call(be_abi_irg_t *env, ir_node *irn, ir_node *curr_sp)
proj = get_Proj_proj(res);
assert(proj < n_res);
+ assert(res_projs[proj] == NULL);
res_projs[proj] = res;
}
res_proj = irn;
@@
-657,6
+658,9
@@
static ir_node *adjust_call(be_abi_irg_t *env, ir_node *irn, ir_node *curr_sp)
ir_node *proj = res_projs[i];
be_abi_call_arg_t *arg = get_call_arg(call, 1, i);
+ /* returns values on stack not supported yet */
+ assert(arg->in_reg);
+
/*
shift the proj number to the right, since we will drop the
unspeakable Proj_T from the Call. Therefore, all real argument