mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Fix build failures due to Tyoe::dump() api difference + string conversions
This commit is contained in:
@@ -235,7 +235,7 @@ bool StringOptimization::optimizeStringConcat(ApplyInst *concatCall) {
|
||||
|
||||
// Replace lhs + rhs with "lhs + rhs" if both lhs and rhs are constant.
|
||||
if (lhsString.isConstant() && rhsString.isConstant()) {
|
||||
std::string concat = lhsString.str;
|
||||
std::string concat = lhsString.str.str();
|
||||
concat += rhsString.str;
|
||||
if (ApplyInst *stringInit = createStringInit(concat, concatCall)) {
|
||||
concatCall->replaceAllUsesWith(stringInit);
|
||||
|
||||
Reference in New Issue
Block a user