mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-25 00:04:11 +00:00
Fix nasty miscompilation
This commit is contained in:
parent
92b680fdb9
commit
a5e9fe751b
@ -72,7 +72,9 @@ pub fn composite_construct(types: &FxHashMap<Word, Instruction>, function: &mut
|
||||
// of bounds, but just stop optimizing instead of panicing here.
|
||||
break;
|
||||
}
|
||||
if components[index].is_none() {
|
||||
components[index] = Some(value);
|
||||
}
|
||||
// Follow back one in the chain of OpCompositeInsert
|
||||
cur_inst = match defs.get(&cur_inst.operands[1].unwrap_id_ref()) {
|
||||
Some(i) => i,
|
||||
|
Loading…
Reference in New Issue
Block a user