Merge pull request #1462 from ethereum/fix-incorrect-assertion

codegen: assertion did not assert non-nullness
This commit is contained in:
chriseth authored and GitHub committed 2016-12-01 15:14:31 +01:00
commit 55a719a79c
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -583,7 +583,7 @@ bool ContractCompiler::visit(InlineAssembly const& _inlineAssembly)
// lvalue context
auto variable = dynamic_cast<VariableDeclaration const*>(decl);
solAssert(
!!variable || !m_context.isLocalVariable(variable),
!!variable && m_context.isLocalVariable(variable),
"Can only assign to stack variables in inline assembly."
);
unsigned size = variable->type()->sizeOnStack();