diff options
author | chriseth <chris@ethereum.org> | 2017-03-17 17:25:58 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-17 17:25:58 +0800 |
commit | 245c8914cf06b086fc7cd46e4158e9eda2b324ec (patch) | |
tree | 1df898d95c164766b59b66149543ce3922b584c5 /libsolidity/codegen/LValue.cpp | |
parent | 2f2ad42cbc0d0d0de2e48133aa75b67ba35d6bfb (diff) | |
parent | 3ae88377d6bf59afe823eef2e4df4065561ed6ea (diff) | |
download | dexon-solidity-245c8914cf06b086fc7cd46e4158e9eda2b324ec.tar.gz dexon-solidity-245c8914cf06b086fc7cd46e4158e9eda2b324ec.tar.zst dexon-solidity-245c8914cf06b086fc7cd46e4158e9eda2b324ec.zip |
Merge pull request #1792 from ethereum/function-kind
Rename FunctionType::Location to Kind
Diffstat (limited to 'libsolidity/codegen/LValue.cpp')
-rw-r--r-- | libsolidity/codegen/LValue.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsolidity/codegen/LValue.cpp b/libsolidity/codegen/LValue.cpp index b9e141d8..a74a3d74 100644 --- a/libsolidity/codegen/LValue.cpp +++ b/libsolidity/codegen/LValue.cpp @@ -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 |