SolidityExecutionFramework: Fix indentation

- This code can never be reached because CompilerStack.compile() called above does the same analysis and fails if it's not successful.
This commit is contained in:
Kamil Śliwak 2020-06-01 18:25:02 +02:00
parent df7b82bf31
commit 9bb9b6345c

View File

@ -66,12 +66,12 @@ bytes SolidityExecutionFramework::compileContract(
if (m_compileViaYul) if (m_compileViaYul)
{ {
yul::AssemblyStack asmStack( yul::AssemblyStack asmStack(
m_evmVersion, m_evmVersion,
yul::AssemblyStack::Language::StrictAssembly, yul::AssemblyStack::Language::StrictAssembly,
// Ignore optimiser settings here because we need Yul optimisation to // Ignore optimiser settings here because we need Yul optimisation to
// get code that does not exhaust the stack. // get code that does not exhaust the stack.
OptimiserSettings::full() OptimiserSettings::full()
); );
bool analysisSuccessful = asmStack.parseAndAnalyze("", m_compiler.yulIROptimized(contractName)); bool analysisSuccessful = asmStack.parseAndAnalyze("", m_compiler.yulIROptimized(contractName));
solAssert(analysisSuccessful, "Code that passed analysis in CompilerStack can't have errors"); solAssert(analysisSuccessful, "Code that passed analysis in CompilerStack can't have errors");