Skip to content

Commit 10cd1cc

Browse files
authored
[spv_in] Finish emitter after function arguments (#7397)
Fixes #7358.
1 parent ccaf9a8 commit 10cd1cc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

naga/src/front/spv/mod.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3040,7 +3040,6 @@ impl<I: Iterator<Item = u32>> Frontend<I> {
30403040
}
30413041
Op::FunctionCall => {
30423042
inst.expect_at_least(4)?;
3043-
block.extend(emitter.finish(ctx.expressions));
30443043

30453044
let result_type_id = self.next()?;
30463045
let result_id = self.next()?;
@@ -3053,6 +3052,8 @@ impl<I: Iterator<Item = u32>> Frontend<I> {
30533052
arguments.push(get_expr_handle!(arg_id, lexp));
30543053
}
30553054

3055+
block.extend(emitter.finish(ctx.expressions));
3056+
30563057
// We just need an unique handle here, nothing more.
30573058
let function = self.add_call(ctx.function_id, func_id);
30583059

0 commit comments

Comments
 (0)