Skip to content

Commit

Permalink
translate-c: remove explicit comptime from shuffle mask expression
Browse files Browse the repository at this point in the history
  • Loading branch information
ehaas authored and andrewrk committed Jun 23, 2021
1 parent 73f2356 commit b3e7913
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/translate_c.zig
Original file line number Diff line number Diff line change
Expand Up @@ -1397,11 +1397,10 @@ fn makeShuffleMask(c: *Context, scope: *Scope, expr: *const clang.ShuffleVectorE
init.* = converted_index;
}

const mask_init = try Tag.array_init.create(c.arena, .{
return Tag.array_init.create(c.arena, .{
.cond = mask_type,
.cases = init_list,
});
return Tag.@"comptime".create(c.arena, mask_init);
}

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

0 comments on commit b3e7913

Please sign in to comment.