From: Michael Beck Date: Mon, 31 Mar 2003 14:13:02 +0000 (+0000) Subject: Added a NULL return if functions fails, no, assert(0) is NOT enough X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=4076dd78a1b652d6cdeb631871c40b9c35d7c958;p=libfirm Added a NULL return if functions fails, no, assert(0) is NOT enough [r1013] --- diff --git a/ir/tv/tv.c b/ir/tv/tv.c index af40802e3..f76551432 100644 --- 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