From 1f28f79ae609fc36cc1758fbb0fb0bae475ea28c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20=C5=9Aliwak?= Date: Fri, 10 Apr 2020 12:07:53 +0200 Subject: [PATCH] IRGenerator::generate(): Remove duplicate call to setMostDerivedContract() - The same call happens in resetContext(_contract) called immediately before --- libsolidity/codegen/ir/IRGenerator.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/libsolidity/codegen/ir/IRGenerator.cpp b/libsolidity/codegen/ir/IRGenerator.cpp index 6d8d15f61..97a284c8c 100644 --- a/libsolidity/codegen/ir/IRGenerator.cpp +++ b/libsolidity/codegen/ir/IRGenerator.cpp @@ -110,7 +110,6 @@ string IRGenerator::generate(ContractDefinition const& _contract) t("functions", m_context.functionCollector().requestedFunctions()); resetContext(_contract); - m_context.setMostDerivedContract(_contract); t("RuntimeObject", runtimeObjectName(_contract)); t("dispatch", dispatchRoutine(_contract)); for (auto const* contract: _contract.annotation().linearizedBaseContracts)