Skip to content

Commit 00bb18a

Browse files
committed
[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.
1 parent fa9301f commit 00bb18a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/tools/llvm-dwp/llvm-dwp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ getDWOFilenames(StringRef ExecFilename) {
9191
std::string DWOCompDir =
9292
dwarf::toString(Die.find(dwarf::DW_AT_comp_dir), "");
9393
if (!DWOCompDir.empty()) {
94-
SmallString<16> DWOPath(std::move(DWOName));
94+
SmallString<16> DWOPath(DWOName);
9595
sys::fs::make_absolute(DWOCompDir, DWOPath);
9696
if (!sys::fs::exists(DWOPath) && sys::fs::exists(DWOName))
9797
DWOPaths.push_back(std::move(DWOName));

0 commit comments

Comments
 (0)