blob: 02e9750ad83550963992f889874623011b4ce381 [file] [log] [blame]
bug/tint/1474-b.wgsl:7:9 warning: code is unreachable
let non_uniform_cond = non_uniform_value == 0;
^^^^^^^^^^^^^^^^
#include <metal_stdlib>
using namespace metal;
kernel void tint_symbol(device int* tint_symbol_1 [[buffer(0)]]) {
return;
bool const non_uniform_cond = (*(tint_symbol_1) == 0);
if (non_uniform_cond) {
threadgroup_barrier(mem_flags::mem_threadgroup);
}
return;
}