From b3865e402e426387d4cdccdcd249a02d5ba1bc05 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Wed, 3 Apr 2019 00:42:09 -0700 Subject: Make member access its own expression type --- tests/struct-return-2.qbe | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'tests') diff --git a/tests/struct-return-2.qbe b/tests/struct-return-2.qbe index 415ec2f..b1990ec 100644 --- a/tests/struct-return-2.qbe +++ b/tests/struct-return-2.qbe @@ -5,10 +5,7 @@ function w $f() { @body.2 %.1 =:.1 call $g() %.2 =l copy %.1 - %.3 =l copy %.2 - %.4 =l mul 4, 1 - %.5 =l add %.3, %.4 - %.6 =l copy %.5 - %.7 =w loadsw %.6 - ret %.7 + %.3 =l add %.2, 4 + %.4 =w loadsw %.3 + ret %.4 } -- cgit v1.2.3