From 5af3977a9cd1c8ec052d69bfdcdf80f3ede8455d Mon Sep 17 00:00:00 2001 From: Benjamin Lorenz Date: Tue, 22 Oct 2024 11:59:36 +0200 Subject: [PATCH] jitlayers: use std::make_tuple instead of constructor this should be safer for the type deduction and fixes a build error on Yggdrasil --- src/jitlayers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/jitlayers.cpp b/src/jitlayers.cpp index 8b8004af03616..c8d8356687dcf 100644 --- a/src/jitlayers.cpp +++ b/src/jitlayers.cpp @@ -662,7 +662,7 @@ static void jl_emit_codeinst_to_jit( int waiting = jl_analyze_workqueue(codeinst, params); if (waiting) { auto release = std::move(params.tsctx_lock); // unlock again before moving from it - incompletemodules.insert(std::pair(codeinst, std::tuple(std::move(params), waiting))); + incompletemodules.insert(std::pair(codeinst, std::make_tuple(std::move(params), waiting))); } else { finish_params(result_m.getModuleUnlocked(), params);