From 5b8a2d225ca3777c7b49421182bb5c1faf99ae64 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Wed, 3 Apr 2019 12:36:14 -0700 Subject: Revert "Make member access its own expression type" This reverts commit b3865e402e426387d4cdccdcd249a02d5ba1bc05. This breaks member address expressions in static initializers. We can support bit-fields by instead adding a "bit-field" expression that affects loads and stores to the underlying object. --- tests/struct-return-2.qbe | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/struct-return-2.qbe b/tests/struct-return-2.qbe index b1990ec..415ec2f 100644 --- a/tests/struct-return-2.qbe +++ b/tests/struct-return-2.qbe @@ -5,7 +5,10 @@ function w $f() { @body.2 %.1 =:.1 call $g() %.2 =l copy %.1 - %.3 =l add %.2, 4 - %.4 =w loadsw %.3 - ret %.4 + %.3 =l copy %.2 + %.4 =l mul 4, 1 + %.5 =l add %.3, %.4 + %.6 =l copy %.5 + %.7 =w loadsw %.6 + ret %.7 } -- cgit v1.2.3