Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Zwinkau
libfirm
Commits
4dbca20d
Commit
4dbca20d
authored
Jun 06, 2006
by
Michael Beck
Browse files
Use xmalloc instead of malloc
[r7877]
parent
dacb503f
Changes
2
Hide whitespace changes
Inline
Side-by-side
ir/ana/cdep.c
View file @
4dbca20d
...
...
@@ -5,6 +5,7 @@
#include "irgwalk.h"
#include "irnode.h"
#include "pmap.h"
#include "xmalloc.h"
#include "cdep.h"
#include "irprintf.h"
...
...
@@ -34,7 +35,7 @@ static void add_cdep(ir_node* node, ir_node* dep_on)
#endif
if
(
dep
==
NULL
)
{
cdep
*
newdep
=
malloc
(
sizeof
(
*
newdep
));
cdep
*
newdep
=
x
malloc
(
sizeof
(
*
newdep
));
newdep
->
node
=
dep_on
;
newdep
->
next
=
NULL
;
...
...
@@ -47,7 +48,7 @@ static void add_cdep(ir_node* node, ir_node* dep_on)
if
(
dep
->
next
==
NULL
)
break
;
dep
=
dep
->
next
;
}
newdep
=
malloc
(
sizeof
(
*
newdep
));
newdep
=
x
malloc
(
sizeof
(
*
newdep
));
newdep
->
node
=
dep_on
;
newdep
->
next
=
NULL
;
dep
->
next
=
newdep
;
...
...
ir/ana/execfreq.c
View file @
4dbca20d
...
...
@@ -183,9 +183,9 @@ compute_execfreq(ir_graph * irg)
irg_block_walk_graph
(
irg
,
block_walker
,
NULL
,
&
wd
);
size
=
set_count
(
freqs
);
matrix
=
malloc
(
size
*
size
*
sizeof
(
*
matrix
));
matrix
=
x
malloc
(
size
*
size
*
sizeof
(
*
matrix
));
memset
(
matrix
,
0
,
size
*
size
*
sizeof
(
*
matrix
));
rhs
=
malloc
(
size
*
sizeof
(
*
rhs
));
rhs
=
x
malloc
(
size
*
sizeof
(
*
rhs
));
memset
(
rhs
,
0
,
size
*
sizeof
(
*
rhs
));
set_foreach
(
freqs
,
freq
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment