aboutsummaryrefslogtreecommitdiffstats
path: root/ExpressionCompiler.cpp
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2014-11-07 05:04:10 +0800
committerChristian <c@ethdev.com>2014-11-07 05:04:10 +0800
commitd3215fb4a697e8e9962bf59f573fab309ab5ac18 (patch)
tree24939421ef08111fdc94f581fd0c9dcd73513a46 /ExpressionCompiler.cpp
parente0ba1c79db652e71535cf56f842a23d14b217994 (diff)
downloaddexon-solidity-d3215fb4a697e8e9962bf59f573fab309ab5ac18.tar.gz
dexon-solidity-d3215fb4a697e8e9962bf59f573fab309ab5ac18.tar.zst
dexon-solidity-d3215fb4a697e8e9962bf59f573fab309ab5ac18.zip
Re-added some changes lost in merges.
Diffstat (limited to 'ExpressionCompiler.cpp')
-rw-r--r--ExpressionCompiler.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/ExpressionCompiler.cpp b/ExpressionCompiler.cpp
index da054920..48bcd578 100644
--- a/ExpressionCompiler.cpp
+++ b/ExpressionCompiler.cpp
@@ -376,8 +376,7 @@ void ExpressionCompiler::appendTypeConversion(Type const& _typeOnStack, Type con
else if (_typeOnStack != _targetType)
{
// All other types should not be convertible to non-equal types.
- assert(!_typeOnStack.isExplicitlyConvertibleTo(_targetType));
- assert(false);
+ BOOST_THROW_EXCEPTION(InternalCompilerError() << errinfo_comment("Invalid type conversion requested."));
}
}