[spv-in] fix expression emit in image store

This commit is contained in:
Dzmitry Malyshau authored and Dzmitry Malyshau committed 2021-08-24 18:17:02 -04:00
1 parent 02c74b5002
commit c8f220f57c
1 file changed
+1 -1
+1 -1
View File
@@ -1617,7 +1617,6 @@ impl<I: Iterator<Item = u32>> Parser<I> {
}
Op::ImageWrite => {
let extra = inst.expect_at_least(4)?;
block.extend(emitter.finish(expressions));
let stmt = self.parse_image_write(
extra,
type_arena,
@@ -1625,6 +1624,7 @@ impl<I: Iterator<Item = u32>> Parser<I> {
arguments,
expressions,
)?;
block.extend(emitter.finish(expressions));
block.push(stmt, span);
emitter.start(expressions);
}