Fix error in g++7 with -O2 flag

This commit is contained in:
Mathias Baumann 2019-07-29 16:16:47 +02:00
parent 00accd9daa
commit d9addbcf49
2 changed files with 2 additions and 2 deletions

View File

@ -922,7 +922,7 @@ string YulUtilFunctions::readFromCalldata(Type const& _type)
return readFromMemoryOrCalldata(_type, true);
}
string YulUtilFunctions::updateStorageValueFunction(Type const& _type, boost::optional<unsigned> const _offset)
string YulUtilFunctions::updateStorageValueFunction(Type const& _type, boost::optional<unsigned> const& _offset)
{
string const functionName =
"update_storage_value_" +

View File

@ -193,7 +193,7 @@ public:
/// the specified slot and offset. If offset is not given, it is expected as
/// runtime parameter.
/// signature: (slot, [offset,] value)
std::string updateStorageValueFunction(Type const& _type, boost::optional<unsigned> const _offset = boost::optional<unsigned>());
std::string updateStorageValueFunction(Type const& _type, boost::optional<unsigned> const& _offset = boost::optional<unsigned>());
/// Returns the name of a function that will write the given value to
/// the specified address.