From: José Fonseca Date: Sat, 8 May 2010 18:26:55 +0000 (+0100) Subject: gallivm: Don't hardcode number of args twice. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=de088c6ae44f78d0afa3970cbaf40cdfc21d8fd9;p=mesa.git gallivm: Don't hardcode number of args twice. --- diff --git a/src/gallium/auxiliary/gallivm/lp_bld_format_aos.c b/src/gallium/auxiliary/gallivm/lp_bld_format_aos.c index 6257e9a4047..f1390859fa5 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_format_aos.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_format_aos.c @@ -384,7 +384,7 @@ lp_build_fetch_rgba_aos(LLVMBuilderRef builder, args[2] = i; args[3] = j; - LLVMBuildCall(builder, function, args, 4, ""); + LLVMBuildCall(builder, function, args, Elements(args), ""); return LLVMBuildLoad(builder, tmp, ""); }