From 3efe10017948f7ce26ce5ea3c8b212c5d049d736 Mon Sep 17 00:00:00 2001 From: Anton Bukov Date: Tue, 9 May 2023 12:19:50 +0200 Subject: [PATCH] Update libsolidity/codegen/ir/IRGeneratorForStatements.cpp Co-authored-by: Hari --- libsolidity/codegen/ir/IRGeneratorForStatements.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libsolidity/codegen/ir/IRGeneratorForStatements.cpp b/libsolidity/codegen/ir/IRGeneratorForStatements.cpp index 4a2019f4c..9fdc1556e 100644 --- a/libsolidity/codegen/ir/IRGeneratorForStatements.cpp +++ b/libsolidity/codegen/ir/IRGeneratorForStatements.cpp @@ -1944,9 +1944,9 @@ void IRGeneratorForStatements::endVisit(MemberAccess const& _memberAccess) else if (member == "typehash") { Type const* arg = dynamic_cast(*_memberAccess.expression().annotation().type).typeArgument(); - solAssert(arg != nullptr); + solAssert(!arg); StructType const* structType = dynamic_cast(arg); - solAssert(structType != nullptr); + solAssert(!structType); StructDefinition const& struct_ = structType->structDefinition(); define(_memberAccess) << "0x" << toHex(struct_.typehash()) << "\n"; }