translate-c: remove explicit comptime from shuffle mask expression

This commit is contained in:
Evan Haas 2021-06-23 10:22:41 -07:00 committed by Andrew Kelley
parent 8a5fb4c248
commit de9306096e

View File

@ -1361,11 +1361,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>