From 04032905efa67865bd19c95610b755d70127e1c3 Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Thu, 26 Sep 2024 21:05:24 -0700 Subject: [PATCH] [naga spv-out] Replace `match` with equivalent `!=`. --- naga/src/back/spv/block.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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) => {