[naga spv-out] Replace match with equivalent !=.

This commit is contained in:
Jim Blandy 2024-09-26 21:05:24 -07:00
parent 98c4d6f42e
commit 04032905ef

View File

@ -200,10 +200,7 @@ impl<'w> BlockContext<'w> {
fn is_intermediate(&self, expr_handle: Handle<crate::Expression>) -> 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) => {