summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/gallivm
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-09-16 09:16:58 -0600
committerJosé Fonseca <[email protected]>2010-09-16 20:20:49 +0100
commit7aadd5ecb580f4134f442db7440642f48087beb7 (patch)
tree41efb817c29a8af6e626d3f67e8533be98c889d0 /src/gallium/auxiliary/gallivm
parent6d173da5c84142ee64f56f4c2e9e495dc1435e91 (diff)
gallivm: fix wrong return value in bitwise functions
Diffstat (limited to 'src/gallium/auxiliary/gallivm')
-rw-r--r--src/gallium/auxiliary/gallivm/lp_bld_bitarit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_bitarit.c b/src/gallium/auxiliary/gallivm/lp_bld_bitarit.c
index 55513c4904a..706479b4d56 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_bitarit.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_bitarit.c
@@ -58,7 +58,7 @@ lp_build_or(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b)
res = LLVMBuildBitCast(bld->builder, res, bld->vec_type, "");
}
- return b;
+ return res;
}
@@ -86,7 +86,7 @@ lp_build_and(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b)
res = LLVMBuildBitCast(bld->builder, res, bld->vec_type, "");
}
- return b;
+ return res;
}
@@ -115,7 +115,7 @@ lp_build_andnot(struct lp_build_context *bld, LLVMValueRef a, LLVMValueRef b)
res = LLVMBuildBitCast(bld->builder, res, bld->vec_type, "");
}
- return b;
+ return res;
}