From 78981fac52ad4d4e19897855090cf70de09bfd8c Mon Sep 17 00:00:00 2001 From: Anton Bukov Date: Mon, 15 May 2023 09:27:12 +0200 Subject: [PATCH] Update libsolidity/codegen/ir/IRGeneratorForStatements.cpp Co-authored-by: Saw-mon & Natalie <3140080+Saw-mon-and-Natalie@users.noreply.github.com> --- libsolidity/codegen/ir/IRGeneratorForStatements.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"; }