summaryrefslogtreecommitdiff
path: root/hir_field_selection.cpp
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2010-03-26 00:25:36 -0700
committerIan Romanick <ian.d.romanick@intel.com>2010-03-26 13:58:48 -0700
commitfb9fb5f51deca28ed1ec7b71759fb71fc26a0ab6 (patch)
treec33f1d310090acb9913936499949a0fa436d0484 /hir_field_selection.cpp
parent44e1dfa2df4de3e2de963f0505cdadade6fe8180 (diff)
Add new abstract ir_rvalue class; rework accordingly.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Diffstat (limited to 'hir_field_selection.cpp')
-rw-r--r--hir_field_selection.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/hir_field_selection.cpp b/hir_field_selection.cpp
index 5f548bfa0f..41dbd42d3b 100644
--- a/hir_field_selection.cpp
+++ b/hir_field_selection.cpp
@@ -106,12 +106,12 @@ generate_swizzle(const char *str, ir_dereference *deref,
}
-struct ir_instruction *
+struct ir_rvalue *
_mesa_ast_field_selection_to_hir(const ast_expression *expr,
exec_list *instructions,
struct _mesa_glsl_parse_state *state)
{
- ir_instruction *op;
+ ir_rvalue *op;
ir_dereference *deref;
YYLTYPE loc;
@@ -128,7 +128,7 @@ _mesa_ast_field_selection_to_hir(const ast_expression *expr,
* now. Doing so prevents spurious error messages from being logged below.
*/
if (is_error_type(op->type))
- return (struct ir_instruction *) deref;
+ return deref;
/* There are two kinds of field selection. There is the selection of a
* specific field from a structure, and there is the selection of a
@@ -164,5 +164,5 @@ _mesa_ast_field_selection_to_hir(const ast_expression *expr,
expr->primary_expression.identifier);
}
- return (struct ir_instruction *) deref;
+ return deref;
}