diff options
author | chriseth <chris@ethereum.org> | 2017-06-24 00:37:15 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2017-06-26 22:30:36 +0800 |
commit | f47e6e90fb55066ff602a1448fc2d3f650449559 (patch) | |
tree | 253a144ad17a27acd3095f1f3dbcb77265026e87 /libsolidity/codegen | |
parent | d2445dfdced2d4e1fccdd873963e02663c0116c1 (diff) | |
download | dexon-solidity-f47e6e90fb55066ff602a1448fc2d3f650449559.tar dexon-solidity-f47e6e90fb55066ff602a1448fc2d3f650449559.tar.gz dexon-solidity-f47e6e90fb55066ff602a1448fc2d3f650449559.tar.bz2 dexon-solidity-f47e6e90fb55066ff602a1448fc2d3f650449559.tar.lz dexon-solidity-f47e6e90fb55066ff602a1448fc2d3f650449559.tar.xz dexon-solidity-f47e6e90fb55066ff602a1448fc2d3f650449559.tar.zst dexon-solidity-f47e6e90fb55066ff602a1448fc2d3f650449559.zip |
Disallow comparisons between 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)) |