mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Fix a bunch of pessimizing moves which prevent copy elision.
This commit is contained in:
@@ -730,7 +730,7 @@ public:
|
||||
sma::TypeName ResultTN;
|
||||
llvm::raw_string_ostream OS(ResultTN.Name);
|
||||
T.print(OS, Options);
|
||||
return std::move(ResultTN);
|
||||
return ResultTN;
|
||||
}
|
||||
|
||||
llvm::Optional<sma::TypeName> convertToOptionalTypeName(Type T) const {
|
||||
|
||||
Reference in New Issue
Block a user