Allow access to `_slot` for local storage pointer variables.

This commit is contained in:
chriseth
2020-02-25 14:28:04 +01:00
parent 44bcff42f5
commit 45041e5d3a
8 changed files with 78 additions and 7 deletions
+1 -1
View File
@@ -781,7 +781,7 @@ bool ContractCompiler::visit(InlineAssembly const& _inlineAssembly)
else
{
// lvalue context
solAssert(!ref->second.isOffset && !ref->second.isSlot, "");
solAssert(!ref->second.isOffset, "");
auto variable = dynamic_cast<VariableDeclaration const*>(decl);
solAssert(
!!variable && m_context.isLocalVariable(variable),