blob: 7d538c7e85965e9fe0765d28475b40df7a8dc2bf [file] [log] [blame]
<dawn>/test/tint/bug/tint/1474-b.wgsl:7:5 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;
}