diff --git a/naga/src/back/spv/block.rs b/naga/src/back/spv/block.rs index 9fb948586..f0c3bfa84 100644 --- a/naga/src/back/spv/block.rs +++ b/naga/src/back/spv/block.rs @@ -200,10 +200,7 @@ impl<'w> BlockContext<'w> { fn is_intermediate(&self, expr_handle: Handle) -> bool { match self.ir_function.expressions[expr_handle] { crate::Expression::GlobalVariable(handle) => { - match self.ir_module.global_variables[handle].space { - crate::AddressSpace::Handle => false, - _ => true, - } + self.ir_module.global_variables[handle].space != crate::AddressSpace::Handle } crate::Expression::LocalVariable(_) => true, crate::Expression::FunctionArgument(index) => {