diff options
author | Pirama Arumuga Nainar <pirama@google.com> | 2015-09-14 11:00:16 -0700 |
---|---|---|
committer | Steve Kondik <shade@chemlab.org> | 2016-03-16 15:58:03 -0700 |
commit | 1e30dc0511c398b69cfee456881754054d515242 (patch) | |
tree | 26d0a39021dc413b2c3e4340ebfa8a2736fa723c | |
parent | f68e9020555269329cc4ed775ad8865896c16f9d (diff) | |
download | android_art-1e30dc0511c398b69cfee456881754054d515242.tar.gz android_art-1e30dc0511c398b69cfee456881754054d515242.tar.bz2 android_art-1e30dc0511c398b69cfee456881754054d515242.zip |
Remove unnecessary std::move from test_dex_file_builder
This stops Clang from warning about -Wpessimizing-move.
Change-Id: Id40acf1c398c615faf6486ef700df6975a5f013f
-rw-r--r-- | compiler/utils/test_dex_file_builder.h | 2 |
1 files changed, 1 insertions, 1 deletions
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<const DexFile> 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) { |