Mesa (master): glsl: Remove useless call to as_rvalue().

Matt Turner mattst88 at kemper.freedesktop.org
Wed Jun 4 00:59:27 UTC 2014


Module: Mesa
Branch: master
Commit: 3540b5eb55d07f46f471956dd4fc18d5102b26f4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3540b5eb55d07f46f471956dd4fc18d5102b26f4

Author: Matt Turner <mattst88 at gmail.com>
Date:   Sun Jun  1 11:43:15 2014 -0700

glsl: Remove useless call to as_rvalue().

The type returned by hir() is already an ir_rvalue pointer.

Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>

---

 src/glsl/ast_function.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/glsl/ast_function.cpp b/src/glsl/ast_function.cpp
index 4b84470..a8bf27d 100644
--- a/src/glsl/ast_function.cpp
+++ b/src/glsl/ast_function.cpp
@@ -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:
 	  *




More information about the mesa-commit mailing list