[vala/wip/transform: 115/140] Use return_temp_access in conditional expression
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/wip/transform: 115/140] Use return_temp_access in conditional expression
- Date: Thu, 6 Dec 2018 18:36:32 +0000 (UTC)
commit 947b01a1ea1e317c69f0468f9df198b27bc864a5
Author: Luca Bruno <lucabru src gnome org>
Date: Sat Feb 1 11:15:24 2014 +0100
Use return_temp_access in conditional expression
codegen/valaccodetransformer.vala | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
---
diff --git a/codegen/valaccodetransformer.vala b/codegen/valaccodetransformer.vala
index cfa7fa2b1..ee346cec8 100644
--- a/codegen/valaccodetransformer.vala
+++ b/codegen/valaccodetransformer.vala
@@ -404,9 +404,7 @@ public class Vala.CCodeTransformer : CodeTransformer {
b.add_assignment (expression (result), expr.false_expression);
b.close ();
- replacement = expression (result);
- replacement.target_type = target_type;
- replacement.formal_target_type = formal_target_type;
+ replacement = return_temp_access (result, expr.value_type, target_type, formal_target_type);
context.analyzer.replaced_nodes.add (expr);
old_parent_node.replace_expression (expr, replacement);
b.check (this);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]