aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/codegen
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-08-15 23:11:43 +0800
committerchriseth <chris@ethereum.org>2018-08-15 23:11:43 +0800
commit455345871d286c24d393fbc9dea3d8a71f1a5b23 (patch)
treee18079b266b12516985d968b8b9a05b709bf7d6e /libsolidity/codegen
parent2ed793c4d345de909332651145265a21a04e92d1 (diff)
downloaddexon-solidity-455345871d286c24d393fbc9dea3d8a71f1a5b23.tar
dexon-solidity-455345871d286c24d393fbc9dea3d8a71f1a5b23.tar.gz
dexon-solidity-455345871d286c24d393fbc9dea3d8a71f1a5b23.tar.bz2
dexon-solidity-455345871d286c24d393fbc9dea3d8a71f1a5b23.tar.lz
dexon-solidity-455345871d286c24d393fbc9dea3d8a71f1a5b23.tar.xz
dexon-solidity-455345871d286c24d393fbc9dea3d8a71f1a5b23.tar.zst
dexon-solidity-455345871d286c24d393fbc9dea3d8a71f1a5b23.zip
More safeguards for (library) function types.
Diffstat (limited to 'libsolidity/codegen')
-rw-r--r--libsolidity/codegen/ExpressionCompiler.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/libsolidity/codegen/ExpressionCompiler.cpp b/libsolidity/codegen/ExpressionCompiler.cpp
index 7a4548f5..f1fce64f 100644
--- a/libsolidity/codegen/ExpressionCompiler.cpp
+++ b/libsolidity/codegen/ExpressionCompiler.cpp
@@ -1164,18 +1164,18 @@ bool ExpressionCompiler::visit(MemberAccess const& _memberAccess)
solAssert(false, "event not found");
// no-op, because the parent node will do the job
break;
- case FunctionType::Kind::External:
- case FunctionType::Kind::Creation:
case FunctionType::Kind::DelegateCall:
+ _memberAccess.expression().accept(*this);
+ m_context << funType->externalIdentifier();
+ break;
case FunctionType::Kind::CallCode:
+ case FunctionType::Kind::External:
+ case FunctionType::Kind::Creation:
case FunctionType::Kind::Send:
case FunctionType::Kind::BareCall:
case FunctionType::Kind::BareCallCode:
case FunctionType::Kind::BareDelegateCall:
case FunctionType::Kind::Transfer:
- _memberAccess.expression().accept(*this);
- m_context << funType->externalIdentifier();
- break;
case FunctionType::Kind::Log0:
case FunctionType::Kind::Log1:
case FunctionType::Kind::Log2: