Fix build failures due to Tyoe::dump() api difference + string conversions

This commit is contained in:
Nathan Hawes
2020-08-04 14:19:15 -07:00
parent 607e2b8822
commit 3707cfab12
3 changed files with 6 additions and 4 deletions

View File

@@ -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);