diff --git a/src/tint/writer/spirv/generator_impl_ir.cc b/src/tint/writer/spirv/generator_impl_ir.cc index c2ac8ca3e5..e656e1a628 100644 --- a/src/tint/writer/spirv/generator_impl_ir.cc +++ b/src/tint/writer/spirv/generator_impl_ir.cc @@ -128,7 +128,7 @@ void GeneratorImplIr::EmitFunction(const ir::Function* func) { } void GeneratorImplIr::EmitEntryPoint(const ir::Function* func, uint32_t id) { - SpvExecutionModel stage; + SpvExecutionModel stage = SpvExecutionModelMax; switch (func->pipeline_stage) { case ir::Function::PipelineStage::kCompute: { stage = SpvExecutionModelGLCompute;