diff --git a/libsolidity/codegen/ExpressionCompiler.cpp b/libsolidity/codegen/ExpressionCompiler.cpp index 85634906e01f..c59b8d52529f 100644 --- a/libsolidity/codegen/ExpressionCompiler.cpp +++ b/libsolidity/codegen/ExpressionCompiler.cpp @@ -2851,8 +2851,7 @@ void ExpressionCompiler::appendExternalFunctionCall( // code, the call will return empty data and the ABI decoder will revert. if ( encodedHeadSize == 0 || - !haveReturndatacopy || - m_context.revertStrings() >= RevertStrings::Debug + !haveReturndatacopy ) { m_context << Instruction::DUP1 << Instruction::EXTCODESIZE << Instruction::ISZERO; diff --git a/libsolidity/codegen/ir/IRGeneratorForStatements.cpp b/libsolidity/codegen/ir/IRGeneratorForStatements.cpp index 5902cfef68b6..ed754c13a310 100644 --- a/libsolidity/codegen/ir/IRGeneratorForStatements.cpp +++ b/libsolidity/codegen/ir/IRGeneratorForStatements.cpp @@ -2724,8 +2724,7 @@ void IRGeneratorForStatements::appendExternalFunctionCall( !eof && ( encodedHeadSize == 0 || - !m_context.evmVersion().supportsReturndata() || - m_context.revertStrings() >= RevertStrings::Debug + !m_context.evmVersion().supportsReturndata() ); templ("checkExtcodesize", checkExtcodesize);