Gracefully disable source maps for eof codegen.

This commit is contained in:
Daniel Kirchner 2023-01-04 19:28:52 +01:00
parent 8719f86ea9
commit 54bdaeee39

View File

@ -827,6 +827,10 @@ string const* CompilerStack::sourceMapping(string const& _contractName) const
if (m_stackState != CompilationSuccessful)
solThrow(CompilerError, "Compilation was not successful.");
// TODO
if (m_eofVersion.has_value())
return nullptr;
Contract const& c = contract(_contractName);
if (!c.sourceMapping)
{
@ -841,6 +845,10 @@ string const* CompilerStack::runtimeSourceMapping(string const& _contractName) c
if (m_stackState != CompilationSuccessful)
solThrow(CompilerError, "Compilation was not successful.");
// TODO
if (m_eofVersion.has_value())
return nullptr;
Contract const& c = contract(_contractName);
if (!c.runtimeSourceMapping)
{