From 1d7b470b0d180f90ad18e0145ad69780b54196c5 Mon Sep 17 00:00:00 2001 From: Daniel Kirchner Date: Wed, 4 Jan 2023 19:28:52 +0100 Subject: [PATCH] Gracefully disable source maps for eof codegen. --- libsolidity/interface/CompilerStack.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libsolidity/interface/CompilerStack.cpp b/libsolidity/interface/CompilerStack.cpp index 9e3703628..cacfc95aa 100644 --- a/libsolidity/interface/CompilerStack.cpp +++ b/libsolidity/interface/CompilerStack.cpp @@ -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) {