diff options
author | Eric Anholt <eric@anholt.net> | 2010-04-07 12:35:34 -0700 |
---|---|---|
committer | Ian Romanick <ian.d.romanick@intel.com> | 2010-04-07 17:23:23 -0700 |
commit | f1ddca9f2143e377d2a70941dcedbb1f5c699e07 (patch) | |
tree | dcec974a31cbbf90c7c059532b6c9924342d68ca /ast_function.cpp | |
parent | 0c824653952a67722c242616bb34a4796b42f660 (diff) |
Clarify the types of various exec_list in ir.h
Diffstat (limited to 'ast_function.cpp')
-rw-r--r-- | ast_function.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/ast_function.cpp b/ast_function.cpp index cd57c32..3472b39 100644 --- a/ast_function.cpp +++ b/ast_function.cpp @@ -38,7 +38,7 @@ process_parameters(exec_list *instructions, exec_list *actual_parameters, if (first != NULL) { simple_node *ptr = first; do { - ir_instruction *const result = + ir_rvalue *const result = ((ast_node *) ptr)->hir(instructions, state); ptr = ptr->next; @@ -71,10 +71,8 @@ process_call(exec_list *instructions, ir_function *f, exec_list_iterator formal_iter = sig->parameters.iterator(); while (actual_iter.has_next()) { - ir_rvalue *actual = - ((ir_instruction *) actual_iter.get())->as_rvalue(); - ir_variable *formal = - ((ir_instruction *) formal_iter.get())->as_variable(); + ir_rvalue *actual = (ir_rvalue *) actual_iter.get(); + ir_variable *formal = (ir_variable *) formal_iter.get(); assert(actual != NULL); assert(formal != NULL); |