glsl: Mark path as unreachable.
authorMatt Turner <mattst88@gmail.com>
Sat, 11 Apr 2015 17:11:13 +0000 (10:11 -0700)
committerMatt Turner <mattst88@gmail.com>
Sat, 11 Apr 2015 17:23:05 +0000 (10:23 -0700)
src/glsl/ast_function.cpp

index 918be6966d5736cf8d574e1d585086874ff3ac3b..36a0d193d9ea0fd43c1e4d2823ab383120683f94 100644 (file)
@@ -1791,7 +1791,7 @@ ast_function_expression::hir(exec_list *instructions,
       return value;
    }
 
-   return ir_rvalue::error_value(ctx);
+   unreachable("not reached");
 }
 
 ir_rvalue *