projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b1800d6
)
make get_irg_graph_nr() 64-bit save
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Tue, 21 Feb 2006 13:54:26 +0000
(13:54 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Tue, 21 Feb 2006 13:54:26 +0000
(13:54 +0000)
[r7361]
ir/ir/irgraph.c
patch
|
blob
|
history
diff --git
a/ir/ir/irgraph.c
b/ir/ir/irgraph.c
index
9237954
..
7e492a2
100644
(file)
--- a/
ir/ir/irgraph.c
+++ b/
ir/ir/irgraph.c
@@
-32,6
+32,7
@@
#include "mangle.h"
#include "irouts.h"
#include "irhooks.h"
+#include "irtools.h"
#include "irgwalk.h"
#include "iredges_t.h"
#include "type_t.h"
@@
-365,14
+366,12
@@
int
}
/* Outputs a unique number for this node */
-
-long
-get_irg_graph_nr(ir_graph *irg) {
+long get_irg_graph_nr(ir_graph *irg) {
assert(irg);
#ifdef DEBUG_libfirm
return irg->graph_nr;
#else
- return (long)
irg
;
+ return (long)
PTR_TO_INT(irg)
;
#endif
}