]> git.rm.cloudns.org Git - xonotic/gmqcc.git/commitdiff
Logic elsewhere handles this (no need to duplicate)
authorDale Weiler <killfieldengine@gmail.com>
Fri, 30 Aug 2013 11:23:15 +0000 (07:23 -0400)
committerDale Weiler <killfieldengine@gmail.com>
Fri, 30 Aug 2013 11:23:15 +0000 (07:23 -0400)
intrin.c

index 394d044c29855d9935f9d3084baa5eaba0513946..d713df0f4000f0786353ea4d5de3239073986916 100644 (file)
--- 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);
         }