diff --git a/libsolidity/codegen/ir/IRGeneratorForStatements.cpp b/libsolidity/codegen/ir/IRGeneratorForStatements.cpp index 7efaf8bb2..ae251fb7d 100644 --- a/libsolidity/codegen/ir/IRGeneratorForStatements.cpp +++ b/libsolidity/codegen/ir/IRGeneratorForStatements.cpp @@ -1946,7 +1946,7 @@ void IRGeneratorForStatements::endVisit(MemberAccess const& _memberAccess) Type const* arg = dynamic_cast(*_memberAccess.expression().annotation().type).typeArgument(); solAssert(!!arg); StructType const* structType = dynamic_cast(arg); - solAssert(!structType); + solAssert(!!structType); StructDefinition const& struct_ = structType->structDefinition(); define(_memberAccess) << "0x" << struct_.typehash() << "\n"; }