mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-16 08:40:29 +01:00
gallivm: Remove dead code in lp_build_compare_ext.
There are earlier returns for PIPE_FUNC_NEVER and PIPE_FUNC_ALWAYS. The switch value of 'func' cannot be either of those values. Fixes "Logically dead code" defects reported by Coverity. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: José Fonseca <jfonseca@vmware.com>
This commit is contained in:
parent
8a9df7a370
commit
0ac3164708
1 changed files with 0 additions and 6 deletions
|
|
@ -100,12 +100,6 @@ lp_build_compare_ext(struct gallivm_state *gallivm,
|
|||
if(type.floating) {
|
||||
LLVMRealPredicate op;
|
||||
switch(func) {
|
||||
case PIPE_FUNC_NEVER:
|
||||
op = LLVMRealPredicateFalse;
|
||||
break;
|
||||
case PIPE_FUNC_ALWAYS:
|
||||
op = LLVMRealPredicateTrue;
|
||||
break;
|
||||
case PIPE_FUNC_EQUAL:
|
||||
op = ordered ? LLVMRealOEQ : LLVMRealUEQ;
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue