gallivm: Silence unused variable warnings on release builds.

Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
Jose Fonseca
2015-03-20 12:02:42 +00:00
parent 06ac717810
commit 397b491173
2 changed files with 4 additions and 0 deletions
@@ -1831,6 +1831,8 @@ lp_build_round_altivec(struct lp_build_context *bld,
assert(lp_check_value(type, a));
assert(util_cpu_caps.has_altivec);
(void)type;
switch (mode) {
case LP_BUILD_ROUND_NEAREST:
intrinsic = "llvm.ppc.altivec.vrfin";
@@ -182,6 +182,8 @@ lp_build_shl(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b)
assert(lp_check_value(type, a));
assert(lp_check_value(type, b));
(void)type;
res = LLVMBuildShl(builder, a, b, "");
return res;