microsoft/compiler: Getting a builtin function with an undeclared signature should...
authorJesse Natalie <jenatali@microsoft.com>
Mon, 3 Jan 2022 12:59:03 +0000 (04:59 -0800)
committerMarge Bot <emma+marge@anholt.net>
Wed, 26 Jan 2022 01:31:35 +0000 (01:31 +0000)
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Bill Kristiansen <billkris@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14399>

src/microsoft/compiler/dxil_function.c

index 1d0cea0..5429231 100644 (file)
@@ -130,7 +130,7 @@ allocate_function_from_predefined(struct dxil_module *mod,
                                 predefined_funcs[i].attr);
       }
    }
-   return false;
+   unreachable("Invalid function name");
 }
 
 const struct dxil_func *