glsl: Remove useless call to as_rvalue().
authorMatt Turner <mattst88@gmail.com>
Sun, 1 Jun 2014 18:43:15 +0000 (11:43 -0700)
committerMatt Turner <mattst88@gmail.com>
Wed, 4 Jun 2014 00:58:34 +0000 (17:58 -0700)
The type returned by hir() is already an ir_rvalue pointer.

Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
src/glsl/ast_function.cpp

index 4b84470679e3c4d9dad5b000c21a9de59b638dcb..a8bf27df7b5c89f5140b316b5e58d738baa41e7e 100644 (file)
@@ -1560,7 +1560,7 @@ ast_function_expression::hir(exec_list *instructions,
 
       foreach_list (n, &this->expressions) {
         ast_node *ast = exec_node_data(ast_node, n, link);
-        ir_rvalue *result = ast->hir(instructions, state)->as_rvalue();
+        ir_rvalue *result = ast->hir(instructions, state);
 
         /* From page 50 (page 56 of the PDF) of the GLSL 1.50 spec:
          *