mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Change references to FunctionType::Location
This commit is contained in:
1 parent
7123f25210
commit
3ae88377d6
8 files changed
+124
-127
No files matched your search
@@ -199,7 +199,7 @@ void StorageItem::retrieveValue(SourceLocation const&, bool _remove) const
|
||||
}
|
||||
else if (FunctionType const* fun = dynamic_cast<decltype(fun)>(m_dataType))
|
||||
{
|
||||
if (fun->location() == FunctionType::Location::External)
|
||||
if (fun->kind() == FunctionType::Kind::External)
|
||||
{
|
||||
CompilerUtils(m_context).splitExternalFunctionType(false);
|
||||
cleaned = true;
|
||||
@@ -256,7 +256,7 @@ void StorageItem::storeValue(Type const& _sourceType, SourceLocation const& _loc
|
||||
if (FunctionType const* fun = dynamic_cast<decltype(fun)>(m_dataType))
|
||||
{
|
||||
solAssert(_sourceType == *m_dataType, "function item stored but target is not equal to source");
|
||||
if (fun->location() == FunctionType::Location::External)
|
||||
if (fun->kind() == FunctionType::Kind::External)
|
||||
// Combine the two-item function type into a single stack slot.
|
||||
utils.combineExternalFunctionType(false);
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user