diff --git a/libyul/backends/evm/EVMDialect.cpp b/libyul/backends/evm/EVMDialect.cpp index 35fa5f88e..c86be6f69 100644 --- a/libyul/backends/evm/EVMDialect.cpp +++ b/libyul/backends/evm/EVMDialect.cpp @@ -82,7 +82,8 @@ pair createEVMFunction( _assembly.appendInstruction(_instruction); }; - return {f.name, move(f)}; + YulString name = f.name; + return {name, move(f)}; } pair createFunction(