OSDN Git Service

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 918be69..36a0d19 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 *