Skip to content

Commit

Permalink
Attempt to fix MSVC build.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdavis5e committed Sep 19, 2023
1 parent a547b52 commit 64fa0b6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spirv_msl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3850,7 +3850,8 @@ uint32_t CompilerMSL::add_interface_block(StorageClass storage, bool patch)
// We still rely on the block being declared as a variable. Make sure that happens.
if (all_captured && !is_builtin)
{
get<SPIRFunction>(ir.default_entry_point).add_local_variable(var_id);
auto &entry_point = get<SPIRFunction>(ir.default_entry_point);
entry_point.add_local_variable(var_id);
vars_needing_early_declaration.push_back(var_id);
}
}
Expand Down

0 comments on commit 64fa0b6

Please sign in to comment.