mirror of
https://github.com/ziglang/zig.git
synced 2026-01-11 01:45:12 +00:00
AstGen: function prototypes can have alignment
This commit is contained in:
parent
df24ce52b1
commit
9db5b2c5c6
@ -1041,7 +1041,9 @@ pub fn fnProtoExpr(
|
||||
assert(param_type_i == param_count);
|
||||
}
|
||||
|
||||
assert(fn_proto.ast.align_expr == 0); // caught by the parser
|
||||
if (fn_proto.ast.align_expr != 0) {
|
||||
return astgen.failNode(fn_proto.ast.align_expr, "TODO: AstGen: implement function prototypes with alignment expressions", .{});
|
||||
}
|
||||
assert(fn_proto.ast.section_expr == 0); // caught by the parser
|
||||
|
||||
const maybe_bang = tree.firstToken(fn_proto.ast.return_type) - 1;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user