diff --git a/libsolidity/codegen/ir/IRGeneratorForStatements.cpp b/libsolidity/codegen/ir/IRGeneratorForStatements.cpp index 6240d5a22..7efaf8bb2 100644 --- a/libsolidity/codegen/ir/IRGeneratorForStatements.cpp +++ b/libsolidity/codegen/ir/IRGeneratorForStatements.cpp @@ -1944,7 +1944,7 @@ void IRGeneratorForStatements::endVisit(MemberAccess const& _memberAccess) else if (member == "typehash") { Type const* arg = dynamic_cast(*_memberAccess.expression().annotation().type).typeArgument(); - solAssert(!arg); + solAssert(!!arg); StructType const* structType = dynamic_cast(arg); solAssert(!structType); StructDefinition const& struct_ = structType->structDefinition();