mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Always generate code for .selector member access.
This commit is contained in:
committed by
Kamil Śliwak
parent
64427412c4
commit
5c7214cbe3
@@ -1659,6 +1659,10 @@ bool ExpressionCompiler::visit(MemberAccess const& _memberAccess)
|
||||
{
|
||||
if (functionType->hasDeclaration())
|
||||
{
|
||||
// Still visit the expression in case it has side effects.
|
||||
_memberAccess.expression().accept(*this);
|
||||
utils().popStackElement(*functionType);
|
||||
|
||||
if (functionType->kind() == FunctionType::Kind::Event)
|
||||
m_context << u256(h256::Arith(util::keccak256(functionType->externalSignature())));
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user