Tests that compile via Yul have to use the Yul optimizer.

This commit is contained in:
chriseth 2019-05-02 12:20:52 +02:00
parent f5f0804c19
commit dcca6f6318

View File

@ -92,7 +92,9 @@ public:
yul::AssemblyStack asmStack(
m_evmVersion,
yul::AssemblyStack::Language::StrictAssembly,
m_optimiserSettings
// Ignore optimiser settings here because we need Yul optimisation to
// get code that does not exhaust the stack.
OptimiserSettings::full()
);
if (!asmStack.parseAndAnalyze("", m_compiler.yulIROptimized(
_contractName.empty() ? m_compiler.lastContractName() : _contractName