From 94d800bfa364601faee73826c941015e2f15ae05 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Wed, 4 Oct 2017 16:59:40 +0200 Subject: ac: silence a warning --- src/amd/common/ac_llvm_build.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/amd/common') diff --git a/src/amd/common/ac_llvm_build.c b/src/amd/common/ac_llvm_build.c index 51fb009be8b..46153a0c39c 100644 --- a/src/amd/common/ac_llvm_build.c +++ b/src/amd/common/ac_llvm_build.c @@ -1048,7 +1048,7 @@ ac_build_ddxy(struct ac_llvm_context *ctx, AC_FUNC_ATTR_READNONE | AC_FUNC_ATTR_CONVERGENT); } else { - uint32_t masks[2]; + uint32_t masks[2] = {}; switch (mask) { case AC_TID_MASK_TOP_LEFT: @@ -1067,6 +1067,8 @@ ac_build_ddxy(struct ac_llvm_context *ctx, masks[0] = 0x80a0; masks[1] = 0x80f5; break; + default: + assert(0); } args[0] = val; -- cgit v1.2.3