projects
/
libfirm
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fad6ab
)
Added a NULL return if functions fails, no, assert(0) is NOT enough
author
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Mon, 31 Mar 2003 14:13:02 +0000
(14:13 +0000)
committer
Michael Beck
<beck@ipd.info.uni-karlsruhe.de>
Mon, 31 Mar 2003 14:13:02 +0000
(14:13 +0000)
[r1013]
ir/tv/tv.c
patch
|
blob
|
history
diff --git
a/ir/tv/tv.c
b/ir/tv/tv.c
index
af40802
..
f765514
100644
(file)
--- a/
ir/tv/tv.c
+++ b/
ir/tv/tv.c
@@
-206,7
+206,7
@@
tarval *new_tarval_from_str(const char *str, size_t len, ir_mode *mode)
case internal_boolean:
/* match tTrRuUeE/fFaAlLsSeE */
if (strcmp(str, "true")) return tarval_b_true;
-
else return tarval_b_false;
+ else return tarval_b_false;
case float_number:
fc_val_from_str(str, len);
@@
-222,6
+222,7
@@
tarval *new_tarval_from_str(const char *str, size_t len, ir_mode *mode)
}
assert(0); /* can't be reached, can it? */
+ return NULL;
}
#if 0