aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/codegen/LValue.cpp
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-03-16 19:58:17 +0800
committerAlex Beregszaszi <alex@rtfs.hu>2017-03-16 20:49:52 +0800
commit3ae88377d6bf59afe823eef2e4df4065561ed6ea (patch)
tree5d3df9cd820cd53f6b98a80e5d5ffb2ddbbdbc3d /libsolidity/codegen/LValue.cpp
parent7123f25210c200f225c5988452d9e2c35d668223 (diff)
downloaddexon-solidity-3ae88377d6bf59afe823eef2e4df4065561ed6ea.tar
dexon-solidity-3ae88377d6bf59afe823eef2e4df4065561ed6ea.tar.gz
dexon-solidity-3ae88377d6bf59afe823eef2e4df4065561ed6ea.tar.bz2
dexon-solidity-3ae88377d6bf59afe823eef2e4df4065561ed6ea.tar.lz
dexon-solidity-3ae88377d6bf59afe823eef2e4df4065561ed6ea.tar.xz
dexon-solidity-3ae88377d6bf59afe823eef2e4df4065561ed6ea.tar.zst
dexon-solidity-3ae88377d6bf59afe823eef2e4df4065561ed6ea.zip
Change references to FunctionType::Location
Diffstat (limited to 'libsolidity/codegen/LValue.cpp')
-rw-r--r--libsolidity/codegen/LValue.cpp4
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