mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Tests that compile via Yul have to use the Yul optimizer.
This commit is contained in:
parent
f5f0804c19
commit
dcca6f6318
@ -92,7 +92,9 @@ public:
|
|||||||
yul::AssemblyStack asmStack(
|
yul::AssemblyStack asmStack(
|
||||||
m_evmVersion,
|
m_evmVersion,
|
||||||
yul::AssemblyStack::Language::StrictAssembly,
|
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(
|
if (!asmStack.parseAndAnalyze("", m_compiler.yulIROptimized(
|
||||||
_contractName.empty() ? m_compiler.lastContractName() : _contractName
|
_contractName.empty() ? m_compiler.lastContractName() : _contractName
|
||||||
|
Loading…
Reference in New Issue
Block a user