mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
[SMTChecker] Do not warn on "abi" as an identifer
There is an approprate warning for the function call.
This commit is contained in:
@@ -748,6 +748,13 @@ void SMTEncoder::endVisit(Identifier const& _identifier)
|
||||
defineExpr(_identifier, m_context.state().thisAddress());
|
||||
m_uninterpretedTerms.insert(&_identifier);
|
||||
}
|
||||
// Ignore the builtin abi, it is handled in FunctionCall.
|
||||
// TODO: ignore MagicType in general (abi, block, msg, tx, type)
|
||||
else if (auto magicType = dynamic_cast<MagicType const*>(_identifier.annotation().type); magicType && magicType->kind() == MagicType::Kind::ABI)
|
||||
{
|
||||
solAssert(_identifier.name() == "abi", "");
|
||||
return;
|
||||
}
|
||||
else
|
||||
createExpr(_identifier);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user