summaryrefslogtreecommitdiff
path: root/src/passes/FuncCastEmulation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/passes/FuncCastEmulation.cpp')
-rw-r--r--src/passes/FuncCastEmulation.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passes/FuncCastEmulation.cpp b/src/passes/FuncCastEmulation.cpp
index 80818907f..3255208fe 100644
--- a/src/passes/FuncCastEmulation.cpp
+++ b/src/passes/FuncCastEmulation.cpp
@@ -177,7 +177,7 @@ struct FuncCastEmulation : public Pass {
private:
// Creates a thunk for a function, casting args and return value as needed.
Name makeThunk(Name name, Module* module, Index numParams) {
- Name thunk = std::string("byn$fpcast-emu$") + name.str;
+ Name thunk = std::string("byn$fpcast-emu$") + name.toString();
if (module->getFunctionOrNull(thunk)) {
Fatal() << "FuncCastEmulation::makeThunk seems a thunk name already in "
"use. Was the pass already run on this code?";