aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/codegen
diff options
context:
space:
mode:
authorAlex Beregszaszi <alex@rtfs.hu>2017-06-27 05:55:22 +0800
committerGitHub <noreply@github.com>2017-06-27 05:55:22 +0800
commit9d201a086c13b6d6bf036b60aac9e614a5ebc961 (patch)
tree3cd14891d676fb8718ab0210bc18e8ab4a16d436 /libsolidity/codegen
parentb0ab9aaee0b4629b08ba2ada7e67b4c5d728fd8c (diff)
parent6b05bbbbb42dafdbf38661fd9c2c3c3e88a425a2 (diff)
downloaddexon-solidity-9d201a086c13b6d6bf036b60aac9e614a5ebc961.tar.gz
dexon-solidity-9d201a086c13b6d6bf036b60aac9e614a5ebc961.tar.zst
dexon-solidity-9d201a086c13b6d6bf036b60aac9e614a5ebc961.zip
Merge pull request #2459 from ethereum/noComparisonForSomeTypes
No comparison for some types
Diffstat (limited to 'libsolidity/codegen')
-rw-r--r--libsolidity/codegen/ExpressionCompiler.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/libsolidity/codegen/ExpressionCompiler.cpp b/libsolidity/codegen/ExpressionCompiler.cpp
index a7cfe4dc..a65549fd 100644
--- a/libsolidity/codegen/ExpressionCompiler.cpp
+++ b/libsolidity/codegen/ExpressionCompiler.cpp
@@ -1366,6 +1366,7 @@ void ExpressionCompiler::appendAndOrOperatorCode(BinaryOperation const& _binaryO
void ExpressionCompiler::appendCompareOperatorCode(Token::Value _operator, Type const& _type)
{
+ solAssert(_type.sizeOnStack() == 1, "Comparison of multi-slot types.");
if (_operator == Token::Equal || _operator == Token::NotEqual)
{
if (FunctionType const* funType = dynamic_cast<decltype(funType)>(&_type))