Skip to content

Commit

Permalink
use insert on atomic_upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
schell committed Dec 8, 2024
1 parent b8da110 commit 589ab65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion naga/src/front/spv/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4310,7 +4310,7 @@ impl<I: Iterator<Item = u32>> Frontend<I> {

// Store any associated global variables so we can upgrade their types later
self.upgrade_atomics
.extend(ctx.get_contained_global_variable(p_exp_h));
.insert(ctx.get_contained_global_variable(p_exp_h)?);
}
Op::AtomicExchange
| Op::AtomicIAdd
Expand Down

0 comments on commit 589ab65

Please sign in to comment.