projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
don't crash if a Const node has no tarval set yet
[libfirm]
/
ir
/
adt
/
pmap.c
diff --git
a/ir/adt/pmap.c
b/ir/adt/pmap.c
index
d60284d
..
ee0a165
100644
(file)
--- a/
ir/adt/pmap.c
+++ b/
ir/adt/pmap.c
@@
-76,6
+76,9
@@
void * pmap_get(pmap *map, void *key) {
return entry == NULL ? NULL : entry->value;
}
+int pmap_count(pmap *map) {
+ return set_count(M2S(map));
+}
pmap_entry *pmap_first(pmap *map) {
return (pmap_entry *) set_first(M2S(map));