since unary not doesn't fold these, remove them from immediate_is_true

This commit is contained in:
Wolfgang Bumiller 2012-12-20 19:19:12 +01:00
parent 4319922b3c
commit 34063108a6

View file

@ -488,10 +488,6 @@ static bool immediate_is_true(lex_ctx ctx, ast_value *v)
if (v->constval.vstring && OPTS_FLAG(TRUE_EMPTY_STRINGS))
return true;
return !!v->constval.vstring[0];
case TYPE_ENTITY:
return !!v->constval.ventity;
case TYPE_FIELD:
return !!v->constval.vfield;
default:
compile_error(ctx, "internal error: immediate_is_true on invalid type");
return !!v->constval.vfunc;