Commit 9a1befe1 authored by Michael Beck's avatar Michael Beck
Browse files

make get_irn_node_nr() 64bit safe

[r7363]
parent 6913c88d
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include "iredges_t.h" #include "iredges_t.h"
#include "irhooks.h" #include "irhooks.h"
#include "irtools.h"
/* some constants fixing the positions of nodes predecessors /* some constants fixing the positions of nodes predecessors
in the in array */ in the in array */
...@@ -465,13 +466,12 @@ void firm_set_irn_section(ir_node *n, struct section *s) {} ...@@ -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 long get_irn_node_nr(const ir_node *node) {
get_irn_node_nr(const ir_node *node) {
assert(node); assert(node);
#ifdef DEBUG_libfirm #ifdef DEBUG_libfirm
return node->node_nr; return node->node_nr;
#else #else
return (long)node; return (long)PTR_TO_INT(node);
#endif #endif
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment