glsl: Quiet unreachable no-return-from-function warning.
authorEric Anholt <eric@anholt.net>
Tue, 30 Nov 2010 21:28:47 +0000 (13:28 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 30 Nov 2010 21:29:28 +0000 (13:29 -0800)
src/glsl/ast_to_hir.cpp

index 0978100acd94d38557c9b7ab61f8f7f2e78c3fd6..04b221e9b8d9f9cdff7d23bf43806d2002a6dde5 100644 (file)
@@ -813,6 +813,8 @@ do_comparison(void *mem_ctx, int operation, ir_rvalue *op0, ir_rvalue *op1)
        */
       return new(mem_ctx) ir_constant(true);
    }
+
+   return NULL;
 }
 
 ir_rvalue *