summaryrefslogtreecommitdiff
path: root/ir_function_inlining.cpp
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2010-04-30 23:38:50 -0700
committerKenneth Graunke <kenneth@whitecape.org>2010-04-30 23:38:50 -0700
commitc07fdae33f083f6337a2810c36d6dcb2dbeacff2 (patch)
tree0682b2a912d3007efa87258e8741f0da5dbea4de /ir_function_inlining.cpp
parenta2c6df556655e3619f5a0cd82b0d11aac37c5692 (diff)
Fix incorrect comments in function inliner.
Diffstat (limited to 'ir_function_inlining.cpp')
-rw-r--r--ir_function_inlining.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/ir_function_inlining.cpp b/ir_function_inlining.cpp
index 385ce9e..c623cd0 100644
--- a/ir_function_inlining.cpp
+++ b/ir_function_inlining.cpp
@@ -389,15 +389,15 @@ ir_call::generate_inline(ir_instruction *next_ir)
next_ir->insert_before(v.result);
}
- /* Generate the declarations for the parameters to our inlined code,
- * and set up the mapping of real function body variables to ours.
+ /* Copy back the value of any 'out' parameters from the function body
+ * variables to our own.
*/
i = 0;
param_iter = this->actual_parameters.iterator();
for (i = 0; i < num_parameters; i++) {
ir_instruction *const param = (ir_instruction *) param_iter.get();
- /* Move the actual param into our param variable if it's an 'in' type. */
+ /* Move our param variable into the actual param if it's an 'out' type. */
if (parameters[i]->mode == ir_var_out ||
parameters[i]->mode == ir_var_inout) {
ir_assignment *assign;