Skip to content

Commit

Permalink
hasAttribute instaed of getAttribute
Browse files Browse the repository at this point in the history
Co-authored-by: Evan Haas <evan@lagerdata.com>
  • Loading branch information
wrongnull and ehaas authored Nov 10, 2024
1 parent e6bad26 commit cdb8401
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/aro/Parser.zig
Original file line number Diff line number Diff line change
Expand Up @@ -7224,7 +7224,7 @@ fn unExpr(p: *Parser) Error!Result {
if (tree.isBitfield(member_node)) try p.errTok(.addr_of_bitfield, tok);
const data = p.nodes.items(.data)[@intFromEnum(member_node)];
const lhs_ty = p.nodes.items(.ty)[@intFromEnum(data.member.lhs)];
if (lhs_ty.getAttribute(.@"packed") != null) {
if (lhs_ty.hasAttribute(.@"packed")) {
const record = lhs_ty.getRecord().?;
const mapper = p.comp.string_interner.getSlowTypeMapper();
const extra = Diagnostics.Message.Extra{ .record_member = .{ .record = mapper.lookup(record.name), .member = mapper.lookup(record.fields[data.member.index].name) } };
Expand Down

0 comments on commit cdb8401

Please sign in to comment.