projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- fixed off-by-one error after phase refactoring
[libfirm]
/
ir
/
opt
/
escape_ana.c
diff --git
a/ir/opt/escape_ana.c
b/ir/opt/escape_ana.c
index
34a77db
..
6f4acd9
100644
(file)
--- a/
ir/opt/escape_ana.c
+++ b/
ir/opt/escape_ana.c
@@
-47,6
+47,7
@@
#include "ircons.h"
#include "irprintf.h"
#include "debug.h"
#include "ircons.h"
#include "irprintf.h"
#include "debug.h"
+#include "error.h"
/**
* walker environment
/**
* walker environment
@@
-91,16
+92,14
@@
static int is_method_leaving_raise(ir_node *raise)
/* Hmm: no ProjX from a Raise? This should be a verification
* error. For now we just assert and return.
*/
/* Hmm: no ProjX from a Raise? This should be a verification
* error. For now we just assert and return.
*/
- assert(! "No ProjX after Raise found");
- return 1;
+ panic("No ProjX after Raise found");
}
if (get_irn_n_outs(proj) != 1) {
/* Hmm: more than one user of ProjX: This is a verification
* error.
*/
}
if (get_irn_n_outs(proj) != 1) {
/* Hmm: more than one user of ProjX: This is a verification
* error.
*/
- assert(! "More than one user of ProjX");
- return 1;
+ panic("More than one user of ProjX");
}
n = get_irn_out(proj, 0);
}
n = get_irn_out(proj, 0);
@@
-404,7
+403,7
@@
static void transform_allocs(ir_graph *irg, walk_env_t *env)
ftp = get_irg_frame_type(irg);
for (alloc = env->found_allocs; alloc; alloc = next) {
next = get_irn_link(alloc);
ftp = get_irg_frame_type(irg);
for (alloc = env->found_allocs; alloc; alloc = next) {
next = get_irn_link(alloc);
- size = get_Alloc_
size
(alloc);
+ size = get_Alloc_
count
(alloc);
atp = get_Alloc_type(alloc);
tp = NULL;
atp = get_Alloc_type(alloc);
tp = NULL;