mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Fixes member visibility for anonymous bitstruct. Bitstruct member attributes works. Anonymous bitstruct assignment fixed.
This commit is contained in:
@@ -1105,9 +1105,9 @@ static inline void llvm_emit_bitassign_expr(GenContext *c, BEValue *be_value, Ex
|
||||
|
||||
// Grab the parent
|
||||
BEValue parent;
|
||||
llvm_emit_expr(c, &parent, parent_expr);
|
||||
|
||||
Decl *member = lhs->access_expr.ref;
|
||||
llvm_emit_expr(c, &parent, parent_expr);
|
||||
llvm_emit_bitstruct_member(c, &parent, type_flatten(parent_expr->type)->decl, member);
|
||||
|
||||
// If we have assign + op, load the current value, perform the operation.
|
||||
if (expr->binary_expr.operator != BINARYOP_ASSIGN)
|
||||
|
||||
Reference in New Issue
Block a user