Commit b9035aaf authored by Rico Tzschichholz's avatar Rico Tzschichholz

codegen: Avoid use of temp-var to access in/ref parameters

https://bugzilla.gnome.org/show_bug.cgi?id=789071
parent c89ef7fa
......@@ -734,7 +734,7 @@ public abstract class Vala.CCodeMemberAccessModule : CCodeControlFlowModule {
// special handling for types such as va_list
use_temp = false;
}
if (variable is Parameter && variable.name == "this") {
if (variable is Parameter && (variable.name == "this" || ((Parameter) variable).direction != ParameterDirection.OUT)) {
use_temp = false;
}
if (variable.single_assignment && !result.value_type.is_real_non_null_struct_type ()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment