Skip to content

Commit f508494

Browse files
committed
Fix undefined order of evaluation
1 parent f0d1dda commit f508494

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libyul/backends/evm/EVMDialect.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ pair<YulString, BuiltinFunctionForEVM> createEVMFunction(
8282
_assembly.appendInstruction(_instruction);
8383
};
8484

85-
return {f.name, move(f)};
85+
YulString name = f.name;
86+
return {name, move(f)};
8687
}
8788

8889
pair<YulString, BuiltinFunctionForEVM> createFunction(

0 commit comments

Comments
 (0)