Better error message for out of stack in assembly.

This commit is contained in:
chriseth
2019-01-30 12:24:10 +01:00
parent d6b8521ed5
commit 17a1e7aed5
4 changed files with 55 additions and 26 deletions
@@ -60,5 +60,7 @@ void EVMObjectCompiler::run(Object& _object, bool _optimize)
yulAssert(_object.analysisInfo, "No analysis info.");
yulAssert(_object.code, "No code.");
// We do not catch and re-throw the stack too deep exception here because it is a YulException,
// which should be native to this part of the code.
CodeTransform{m_assembly, *_object.analysisInfo, *_object.code, m_dialect, _optimize, m_evm15}(*_object.code);
}