diff options
author | Alex Beregszaszi <alex@rtfs.hu> | 2017-06-27 05:55:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-27 05:55:22 +0800 |
commit | 9d201a086c13b6d6bf036b60aac9e614a5ebc961 (patch) | |
tree | 3cd14891d676fb8718ab0210bc18e8ab4a16d436 /libsolidity/codegen | |
parent | b0ab9aaee0b4629b08ba2ada7e67b4c5d728fd8c (diff) | |
parent | 6b05bbbbb42dafdbf38661fd9c2c3c3e88a425a2 (diff) | |
download | dexon-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.cpp | 1 |
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)) |