diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-07-08 14:07:12 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-07-12 15:43:37 +0200 |
commit | c4783953004ce5a8426e8eff94ac653a28c358b1 (patch) | |
tree | f91775f64650bf212c72257c2b6b40a8ba721660 /src/buildtool/execution_api/local/local_action.cpp | |
parent | 547aa358600c2d65307cf3516d88b3bc037b46aa (diff) | |
download | justbuild-c4783953004ce5a8426e8eff94ac653a28c358b1.tar.gz |
Capture in TreeReaders by pointer to avoid temporaries
Diffstat (limited to 'src/buildtool/execution_api/local/local_action.cpp')
-rw-r--r-- | src/buildtool/execution_api/local/local_action.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildtool/execution_api/local/local_action.cpp b/src/buildtool/execution_api/local/local_action.cpp index 94d98d6b..955e6724 100644 --- a/src/buildtool/execution_api/local/local_action.cpp +++ b/src/buildtool/execution_api/local/local_action.cpp @@ -291,7 +291,7 @@ auto LocalAction::StageInputs( if (FileSystemManager::IsRelativePath(exec_path)) { return false; } - auto reader = TreeReader<LocalCasReader>{storage_.CAS()}; + auto reader = TreeReader<LocalCasReader>{&storage_.CAS()}; auto result = reader.RecursivelyReadTreeLeafs( root_digest_, exec_path, /*include_trees=*/true); if (not result) { |