From 2a93c52da3de208b5f5f58ed59278531f5198c0e Mon Sep 17 00:00:00 2001 From: Steven Johnson Date: Fri, 23 Jun 2023 15:17:26 -0700 Subject: [PATCH] Update CodeGen_Vulkan_Dev.cpp --- src/CodeGen_Vulkan_Dev.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CodeGen_Vulkan_Dev.cpp b/src/CodeGen_Vulkan_Dev.cpp index ce6e16d44316..7e06447a27fc 100644 --- a/src/CodeGen_Vulkan_Dev.cpp +++ b/src/CodeGen_Vulkan_Dev.cpp @@ -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(); @@ -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(); }