diff options
| author | kcbanner <kcbanner@gmail.com> | 2023-01-03 20:21:28 -0500 |
|---|---|---|
| committer | kcbanner <kcbanner@gmail.com> | 2023-01-03 20:27:46 -0500 |
| commit | 87c06708272cac5404e17b597c1fea332899ec80 (patch) | |
| tree | c0956e2a439e3cb2d21e2bfc9ee4d2f0cd92a1d5 /bindgen/gen_zig.py | |
| parent | 11de8a41ca2fe869cafe3ceed983abcca5a00ede (diff) | |
gen_zig.py: remove obsolete stage1 check
Diffstat (limited to 'bindgen/gen_zig.py')
| -rw-r--r-- | bindgen/gen_zig.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/bindgen/gen_zig.py b/bindgen/gen_zig.py index 09c68fcb..79f599c1 100644 --- a/bindgen/gen_zig.py +++ b/bindgen/gen_zig.py @@ -456,10 +456,7 @@ def gen_helpers(inp): l(' }') l(' },') l(' .Struct, .Array => {') - l(' switch (builtin.zig_backend) {') - l(' .stage1 => return .{ .ptr = &val, .size = @sizeOf(@TypeOf(val)) },') - l(' else => @compileError("Structs and arrays must be passed as pointers to asRange"),') - l(' }') + l(' @compileError("Structs and arrays must be passed as pointers to asRange");') l(' },') l(' else => {') l(' @compileError("Cannot convert to range!");') |