From 1e30dc0511c398b69cfee456881754054d515242 Mon Sep 17 00:00:00 2001 From: Pirama Arumuga Nainar Date: Mon, 14 Sep 2015 11:00:16 -0700 Subject: Remove unnecessary std::move from test_dex_file_builder This stops Clang from warning about -Wpessimizing-move. Change-Id: Id40acf1c398c615faf6486ef700df6975a5f013f --- compiler/utils/test_dex_file_builder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/utils/test_dex_file_builder.h b/compiler/utils/test_dex_file_builder.h index b1d7b4ccf3..b6a228c13c 100644 --- a/compiler/utils/test_dex_file_builder.h +++ b/compiler/utils/test_dex_file_builder.h @@ -216,7 +216,7 @@ class TestDexFileBuilder { std::unique_ptr dex_file(DexFile::Open( &dex_file_data_[0], dex_file_data_.size(), dex_location, 0u, nullptr, &error_msg)); CHECK(dex_file != nullptr) << error_msg; - return std::move(dex_file); + return dex_file; } uint32_t GetStringIdx(const std::string& type) { -- cgit v1.2.3