aboutsummaryrefslogtreecommitdiffstats
path: root/Types.cpp
diff options
context:
space:
mode:
authorLefteris Karapetsas <lefteris@refu.co>2015-02-07 03:57:04 +0800
committerLefteris Karapetsas <lefteris@refu.co>2015-02-07 03:57:04 +0800
commitafe1d9a592446dd403b9ed349529098b71309756 (patch)
tree61e086cac063ea0461d094160729d3d9641ea31b /Types.cpp
parentf6586b81398d7670fc8a99b80e0d6342179e1907 (diff)
downloaddexon-solidity-afe1d9a592446dd403b9ed349529098b71309756.tar.gz
dexon-solidity-afe1d9a592446dd403b9ed349529098b71309756.tar.zst
dexon-solidity-afe1d9a592446dd403b9ed349529098b71309756.zip
Small fixes in Types and ExpressionCompiler
Diffstat (limited to 'Types.cpp')
-rw-r--r--Types.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/Types.cpp b/Types.cpp
index a9051a2c..6a128202 100644
--- a/Types.cpp
+++ b/Types.cpp
@@ -364,8 +364,7 @@ u256 IntegerConstantType::literalValue(Literal const* _literal) const
TypePointer IntegerConstantType::getRealType() const
{
auto intType = getIntegerType();
- if (!intType)
- BOOST_THROW_EXCEPTION(InternalCompilerError() << errinfo_comment("getRealType called with invalid integer constant" + toString()));
+ solAssert(!!intType, std::string("getRealType called with invalid integer constant") + toString());
return intType;
}