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
/
eset.c
diff --git
a/ir/adt/eset.c
b/ir/adt/eset.c
index
9ea922c
..
6dd23a9
100644
(file)
--- a/
ir/adt/eset.c
+++ b/
ir/adt/eset.c
@@
-49,6
+49,10
@@
void eset_destroy(eset *s) {
del_set((set *)s);
}
+/* Returns the number of elements in the set. */
+int eset_count(eset *s) {
+ return set_count((set *)s);
+}
void eset_insert(eset *s, void *p) {
if (!eset_contains(s, p)) {