diff options
Diffstat (limited to 'src/passes/Inlining.cpp')
-rw-r--r-- | src/passes/Inlining.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/passes/Inlining.cpp b/src/passes/Inlining.cpp index f325f70c6..90cf3f5da 100644 --- a/src/passes/Inlining.cpp +++ b/src/passes/Inlining.cpp @@ -324,7 +324,7 @@ static Expression* doInlining(Module* module, Type retType = module->getFunction(call->target)->getResults(); Builder builder(*module); auto* block = builder.makeBlock(); - block->name = Name(std::string("__inlined_func$") + from->name.str); + block->name = Name(std::string("__inlined_func$") + from->name.toString()); // In the unlikely event that the function already has a branch target with // this name, fix that up, as otherwise we can get unexpected capture of our // branches, that is, we could end up with this: @@ -767,7 +767,8 @@ private: return ModuleUtils::copyFunction( func, *module, - Names::getValidFunctionName(*module, prefix + '$' + func->name.str)); + Names::getValidFunctionName(*module, + prefix + '$' + func->name.toString())); } // Get the i-th item in a sequence of initial items in an expression. That is, |