Browse Source

gen_zig.py: remove obsolete stage1 check

kcbanner 2 years ago
parent
commit
87c0670827
1 changed files with 1 additions and 4 deletions
  1. 1 4
      bindgen/gen_zig.py

+ 1 - 4
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!");')