From fa76bcb7ed51acc6f3aa863a26fef47904c8f896 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Szekeres?= Date: Fri, 15 Mar 2024 10:46:25 -0700 Subject: [PATCH] Fix compilation issues that were introduced via forced submission. PiperOrigin-RevId: 616179152 --- centipede/analyze_corpora.cc | 2 +- centipede/distill_test.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/centipede/analyze_corpora.cc b/centipede/analyze_corpora.cc index 9f63398e..8c871426 100644 --- a/centipede/analyze_corpora.cc +++ b/centipede/analyze_corpora.cc @@ -58,7 +58,7 @@ std::vector ReadCorpora(std::string_view binary_name, LOG(INFO) << "Reading features at: " << features_paths[i]; ReadShard(corpus_paths[i], features_paths[i], [&corpus](ByteArray input, FeatureVec features) { - corpus.emplace_back(std::move(input), std::move(features)); + corpus.push_back({std::move(input), std::move(features)}); }); } return corpus; diff --git a/centipede/distill_test.cc b/centipede/distill_test.cc index b503de10..4e0fd64d 100644 --- a/centipede/distill_test.cc +++ b/centipede/distill_test.cc @@ -88,7 +88,7 @@ std::vector ReadFromDistilled(const WorkDir &wd) { std::vector result; auto shard_reader_callback = [&result](ByteArray input, FeatureVec features) { - result.emplace_back(std::move(input), std::move(features)); + result.push_back({std::move(input), std::move(features)}); }; ReadShard(distilled_corpus_path, distilled_features_path, shard_reader_callback);