diff options
author | Matt Turner <[email protected]> | 2014-06-01 11:43:15 -0700 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-06-03 17:58:34 -0700 |
commit | 3540b5eb55d07f46f471956dd4fc18d5102b26f4 (patch) | |
tree | ce5c9b279e7bffdbf56be9c997614e53c3914b37 /src/glsl/ast_function.cpp | |
parent | 963bd99f03781068610a912516377cbfb69ce3c0 (diff) |
glsl: Remove useless call to as_rvalue().
The type returned by hir() is already an ir_rvalue pointer.
Reviewed-by: Juha-Pekka Heikkila <[email protected]>
Diffstat (limited to 'src/glsl/ast_function.cpp')
-rw-r--r-- | src/glsl/ast_function.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/ast_function.cpp b/src/glsl/ast_function.cpp index 4b84470679e..a8bf27df7b5 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: * |