Skip to content

Commit 93ad8b3

Browse files
committed
[llvm-objcopy][NFC] Add std::move() to fix older BB
llvm-svn: 354603
1 parent e0ccb40 commit 93ad8b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/tools/llvm-objcopy/CopyConfig.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ Expected<DriverConfig> parseObjcopyOptions(ArrayRef<const char *> ArgsArr) {
560560
"LLVM was not compiled with LLVM_ENABLE_ZLIB: cannot decompress");
561561

562562
DC.CopyConfigs.push_back(std::move(Config));
563-
return DC;
563+
return std::move(DC);
564564
}
565565

566566
// ParseStripOptions returns the config and sets the input arguments. If a
@@ -653,7 +653,7 @@ Expected<DriverConfig> parseStripOptions(ArrayRef<const char *> ArgsArr) {
653653
}
654654
}
655655

656-
return DC;
656+
return std::move(DC);
657657
}
658658

659659
} // namespace objcopy

0 commit comments

Comments
 (0)