Skip to content

Commit 2dbf195

Browse files
committed
Merge pull request #98983 from nikitalita/patch-2
Prevent stack-use-after-scope in rendering_device_driver_metal.mm
2 parents fa29dde + 78895c7 commit 2dbf195

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/metal/rendering_device_driver_metal.mm

+2-1
Original file line numberDiff line numberDiff line change
@@ -2020,7 +2020,8 @@ void deserialize(BufReader &p_reader) {
20202020

20212021
ERR_FAIL_COND_V_MSG(compiler.get_entry_points_and_stages().size() != 1, Result(), "Expected a single entry point and stage.");
20222022

2023-
EntryPoint &entry_point_stage = compiler.get_entry_points_and_stages().front();
2023+
SmallVector<EntryPoint> entry_pts_stages = compiler.get_entry_points_and_stages();
2024+
EntryPoint &entry_point_stage = entry_pts_stages.front();
20242025
SPIREntryPoint &entry_point = compiler.get_entry_point(entry_point_stage.name, entry_point_stage.execution_model);
20252026

20262027
// Process specialization constants.

0 commit comments

Comments
 (0)