projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6913c88
)
make get_irn_node_nr() 64bit safe
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Tue, 21 Feb 2006 13:55:48 +0000
(13:55 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Tue, 21 Feb 2006 13:55:48 +0000
(13:55 +0000)
[r7363]
ir/ir/irnode.c
patch
|
blob
|
history
diff --git
a/ir/ir/irnode.c
b/ir/ir/irnode.c
index
8e184cd
..
44e3ff1
100644
(file)
--- a/
ir/ir/irnode.c
+++ b/
ir/ir/irnode.c
@@
-30,6
+30,7
@@
#include "iredges_t.h"
#include "irhooks.h"
#include "iredges_t.h"
#include "irhooks.h"
+#include "irtools.h"
/* some constants fixing the positions of nodes predecessors
in the in array */
/* some constants fixing the positions of nodes predecessors
in the in array */
@@
-465,13
+466,12
@@
void firm_set_irn_section(ir_node *n, struct section *s) {}
/* Outputs a unique number for this node */
/* Outputs a unique number for this node */
-long
-get_irn_node_nr(const ir_node *node) {
+long get_irn_node_nr(const ir_node *node) {
assert(node);
#ifdef DEBUG_libfirm
return node->node_nr;
#else
assert(node);
#ifdef DEBUG_libfirm
return node->node_nr;
#else
- return (long)
node
;
+ return (long)
PTR_TO_INT(node)
;
#endif
}
#endif
}