diff --git a/libsolidity/Types.cpp b/libsolidity/Types.cpp index 858828ba0..a6d462a9a 100644 --- a/libsolidity/Types.cpp +++ b/libsolidity/Types.cpp @@ -685,6 +685,8 @@ TypePointer ReferenceType::unaryOperatorResult(Token::Value _operator) const return make_shared(); case DataLocation::Storage: return m_isPointer ? TypePointer() : make_shared(); + default: + solAssert(false, ""); } }