glsl: Remove unused pointer value.
authorVinson Lee <vlee@freedesktop.org>
Tue, 24 Sep 2013 04:41:39 +0000 (21:41 -0700)
committerVinson Lee <vlee@freedesktop.org>
Wed, 25 Sep 2013 05:10:36 +0000 (22:10 -0700)
Silences "Unused pointer value" defect reported by Coverity.

Signed-off-by: Vinson Lee <vlee@freedesktop.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/program/ir_to_mesa.cpp

index d5a6a872ab5ec31be0a1c8f6886152932d2ec11f..8cd42dfd257f5a8978a42400027c49464d685b6e 100644 (file)
@@ -2252,7 +2252,7 @@ ir_to_mesa_visitor::visit(ir_if *ir)
       visit_exec_list(&ir->else_instructions, this);
    }
 
-   if_inst = emit(ir->condition, OPCODE_ENDIF);
+   emit(ir->condition, OPCODE_ENDIF);
 }
 
 void