From 87832d98f34cec0513e5abc14e912eec3100e975 Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Thu, 27 Feb 2025 12:41:59 +0100 Subject: GraphTraverser: Pass artifacts, blobs and trees to BuildAndStage by rvalue --- src/buildtool/computed_roots/analyse_and_build.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/buildtool/computed_roots/analyse_and_build.cpp') diff --git a/src/buildtool/computed_roots/analyse_and_build.cpp b/src/buildtool/computed_roots/analyse_and_build.cpp index f8a18cec..05d37f5b 100644 --- a/src/buildtool/computed_roots/analyse_and_build.cpp +++ b/src/buildtool/computed_roots/analyse_and_build.cpp @@ -54,7 +54,7 @@ auto const [artifacts, runfiles] = ReadOutputArtifacts(analysis_result->target); - auto const [actions, blobs, trees] = analysis_result->result_map.ToResult( + auto [actions, blobs, trees] = analysis_result->result_map.ToResult( analyse_context->statistics, analyse_context->progress, logger); auto const cache_targets = analysis_result->result_map.CacheTargets(); @@ -69,8 +69,12 @@ extra_artifacts.emplace_back(desc); } - auto build_result = traverser.BuildAndStage( - artifacts, {}, actions, blobs, trees, std::move(extra_artifacts)); + auto build_result = traverser.BuildAndStage(artifacts, + {}, + std::move(actions), + std::move(blobs), + std::move(trees), + std::move(extra_artifacts)); if (not build_result) { if (logger != nullptr) { -- cgit v1.2.3