radv: compute the number of subpass attachments correctly
[mesa.git] / src / gallium / auxiliary / gallivm / lp_bld_assert.c
index 37c142bd2aed55b67f37072f9f6383be008700a9..02755765c0eacb5cac321ac2566510b7af67cafa 100644 (file)
@@ -77,7 +77,7 @@ lp_build_assert(struct gallivm_state *gallivm,
 
    function = lp_build_const_func_pointer(gallivm,
                                           func_to_pointer((func_pointer)lp_assert),
-                                          ret_type, arg_types, Elements(arg_types),
+                                          ret_type, arg_types, ARRAY_SIZE(arg_types),
                                           "assert");
 
    /* build function call param list */
@@ -88,5 +88,5 @@ lp_build_assert(struct gallivm_state *gallivm,
    assert(LLVMTypeOf(args[0]) == arg_types[0]);
    assert(LLVMTypeOf(args[1]) == arg_types[1]);
 
-   LLVMBuildCall(builder, function, args, Elements(args), "");
+   LLVMBuildCall(builder, function, args, ARRAY_SIZE(args), "");
 }