From: Dale Weiler Date: Fri, 30 Aug 2013 11:23:15 +0000 (-0400) Subject: Logic elsewhere handles this (no need to duplicate) X-Git-Tag: 0.3.5~113 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=98cb23ca63a4421faecb55667673e8c7ef77dd6c;p=xonotic%2Fgmqcc.git Logic elsewhere handles this (no need to duplicate) --- diff --git a/intrin.c b/intrin.c index 394d044..d713df0 100644 --- a/intrin.c +++ b/intrin.c @@ -449,15 +449,8 @@ ast_expression *intrin_fold(intrin_t *intrin, ast_value *value, ast_expression * for (i = 0; i < vec_size(intrin->intrinsics); i++) { if (!strcmp(value->name, intrin->intrinsics[i].name)) { - if (intrin->intrinsics[i].args != vec_size(exprs)) { - intrin_error( - intrin, - "internal error: attempted to constant-fold with invalid paramaters for intrinsic `%s`\n" - " ==> expected %u arguments, got %u instead", - value->name, intrin->intrinsics[i].args, vec_size(exprs) - ); + if (intrin->intrinsics[i].args != vec_size(exprs)) return NULL; - } /* +10 to skip the "__builtin_" substring in the string */ return fold_intrin(intrin->fold, value->name + 10, exprs); }