forked from OSchip/llvm-project
[BOLT] Add missing std::move
Summary: Add missing std::move in the method BinaryFunction::addAlternativeName (cherry picked from FBD19944661)
This commit is contained in:
parent
36cf37c4c1
commit
754b6569f6
|
@ -549,7 +549,7 @@ private:
|
|||
private:
|
||||
/// Register alternative function name.
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue