projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
replaced malloc.h by stdlib.h and values.h by limits.g for better portability
[libfirm]
/
testprograms
/
dead_block_example.c
diff --git
a/testprograms/dead_block_example.c
b/testprograms/dead_block_example.c
index
5a4d040
..
7493d7c
100644
(file)
--- a/
testprograms/dead_block_example.c
+++ b/
testprograms/dead_block_example.c
@@
-85,8
+85,8
@@
int main(int argc, char **argv)
irg = new_ir_graph (ent, NUM_OF_LOCAL_VARS);
/* to make a condition */
irg = new_ir_graph (ent, NUM_OF_LOCAL_VARS);
/* to make a condition */
- c1 = new_Const (mode_Is,
tarval_from_long (mode_Is, 1
));
- c2 = new_Const (mode_Is,
tarval_from_long (mode_Is, 2
));
+ c1 = new_Const (mode_Is,
new_tarval_from_long (1, mode_Is
));
+ c2 = new_Const (mode_Is,
new_tarval_from_long (2, mode_Is
));
set_value(0, c2);
cond = new_Cond(new_Proj(new_Cmp(c1, c2), mode_b, Eq));
set_value(0, c2);
cond = new_Cond(new_Proj(new_Cmp(c1, c2), mode_b, Eq));