Update libsolidity/codegen/ir/IRGeneratorForStatements.cpp

Co-authored-by: Saw-mon & Natalie <3140080+Saw-mon-and-Natalie@users.noreply.github.com>
This commit is contained in:
Anton Bukov 2023-05-15 09:27:12 +02:00
parent a8dc240d42
commit 78981fac52

View File

@ -1946,7 +1946,7 @@ void IRGeneratorForStatements::endVisit(MemberAccess const& _memberAccess)
Type const* arg = dynamic_cast<MagicType const&>(*_memberAccess.expression().annotation().type).typeArgument(); Type const* arg = dynamic_cast<MagicType const&>(*_memberAccess.expression().annotation().type).typeArgument();
solAssert(!!arg); solAssert(!!arg);
StructType const* structType = dynamic_cast<StructType const*>(arg); StructType const* structType = dynamic_cast<StructType const*>(arg);
solAssert(!structType); solAssert(!!structType);
StructDefinition const& struct_ = structType->structDefinition(); StructDefinition const& struct_ = structType->structDefinition();
define(_memberAccess) << "0x" << struct_.typehash() << "\n"; define(_memberAccess) << "0x" << struct_.typehash() << "\n";
} }