[BOLT] Add missing std::move

Summary: Add missing std::move in the method BinaryFunction::addAlternativeName

(cherry picked from FBD19944661)
This commit is contained in:
Alexander Shaposhnikov 2020-02-17 17:53:12 -08:00 committed by Maksim Panchenko
parent 36cf37c4c1
commit 754b6569f6
1 changed files with 1 additions and 1 deletions

View File

@ -549,7 +549,7 @@ private:
private: private:
/// Register alternative function name. /// Register alternative function name.
void addAlternativeName(std::string NewName) { void addAlternativeName(std::string NewName) {
Aliases.emplace_back(NewName); Aliases.push_back(std::move(NewName));
} }
/// Return label at a given \p Address in the function. If the label does /// Return label at a given \p Address in the function. If the label does