Skip to content

Commit b3e7913

Browse files
ehaasandrewrk
authored andcommitted
translate-c: remove explicit comptime from shuffle mask expression
1 parent 73f2356 commit b3e7913

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/translate_c.zig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1397,11 +1397,10 @@ fn makeShuffleMask(c: *Context, scope: *Scope, expr: *const clang.ShuffleVectorE
13971397
init.* = converted_index;
13981398
}
13991399

1400-
const mask_init = try Tag.array_init.create(c.arena, .{
1400+
return Tag.array_init.create(c.arena, .{
14011401
.cond = mask_type,
14021402
.cases = init_list,
14031403
});
1404-
return Tag.@"comptime".create(c.arena, mask_init);
14051404
}
14061405

14071406
/// @typeInfo(@TypeOf(vec_node)).Vector.<field>

0 commit comments

Comments
 (0)