diff --git a/src/dawn_native/metal/ShaderModuleMTL.h b/src/dawn_native/metal/ShaderModuleMTL.h index 2e447c1796..b270034d5d 100644 --- a/src/dawn_native/metal/ShaderModuleMTL.h +++ b/src/dawn_native/metal/ShaderModuleMTL.h @@ -36,7 +36,7 @@ namespace dawn_native { namespace metal { const ShaderModuleDescriptor* descriptor); struct MetalFunctionData { - id function; + id function = nil; MTLSize localWorkgroupSize; bool needsStorageBufferLength; ~MetalFunctionData() {