diff options
author | Nikita Popov <npopov@redhat.com> | 2024-06-13 11:30:01 +0200 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2024-06-13 11:31:52 +0200 |
commit | 00bb18a77c6c25fa7d6150ae724ffb8a37334ecb (patch) | |
tree | 7e874a3558edc6ef5a87f09ff826ffa39218cc28 /llvm/tools | |
parent | fa9301f35b41396bdf829cfd633fa2f983798723 (diff) | |
download | llvm-00bb18a77c6c25fa7d6150ae724ffb8a37334ecb.zip llvm-00bb18a77c6c25fa7d6150ae724ffb8a37334ecb.tar.gz llvm-00bb18a77c6c25fa7d6150ae724ffb8a37334ecb.tar.bz2 |
[llvm-dwp] Remove incorrect std::move()
DWOName is still used afterwards. The only reason this works out
right now is that SmallString does not actually have a constructor
that can take advantage of the move.
Diffstat (limited to 'llvm/tools')
-rw-r--r-- | llvm/tools/llvm-dwp/llvm-dwp.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-dwp/llvm-dwp.cpp b/llvm/tools/llvm-dwp/llvm-dwp.cpp index 81556b3..4c4f2a9 100644 --- a/llvm/tools/llvm-dwp/llvm-dwp.cpp +++ b/llvm/tools/llvm-dwp/llvm-dwp.cpp @@ -91,7 +91,7 @@ getDWOFilenames(StringRef ExecFilename) { std::string DWOCompDir = dwarf::toString(Die.find(dwarf::DW_AT_comp_dir), ""); if (!DWOCompDir.empty()) { - SmallString<16> DWOPath(std::move(DWOName)); + SmallString<16> DWOPath(DWOName); sys::fs::make_absolute(DWOCompDir, DWOPath); if (!sys::fs::exists(DWOPath) && sys::fs::exists(DWOName)) DWOPaths.push_back(std::move(DWOName)); |