Skip to content

Commit

Permalink
Update CodeGen_Vulkan_Dev.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
steven-johnson committed Jun 23, 2023
1 parent 3b82f37 commit 2a93c52
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CodeGen_Vulkan_Dev.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1950,7 +1950,7 @@ CodeGen_Vulkan_Dev::SPIRV_Emitter::emit_if_then_else(const Expr &condition,
then_case.accept(this);
SpvId then_id = builder.current_id();
builder.append(SpvFactory::branch(merge_block_id));
block_vars.push_back({then_id, then_block_id});
block_vars.emplace_back(then_id, then_block_id);
}
builder.leave_block();

Expand All @@ -1964,7 +1964,7 @@ CodeGen_Vulkan_Dev::SPIRV_Emitter::emit_if_then_else(const Expr &condition,
else_case.accept(this);
SpvId else_id = builder.current_id();
builder.append(SpvFactory::branch(merge_block_id));
block_vars.push_back({else_id, else_block_id});
block_vars.emplace_back(else_id, else_block_id);
}
builder.leave_block();
}
Expand Down

0 comments on commit 2a93c52

Please sign in to comment.