mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Standard-JSON-Interface: Fix a bug (#8371) related to empty filenames and imports.
This commit is contained in:
@@ -1005,7 +1005,6 @@ void CompilerStack::resolveImports()
|
||||
if (ImportDirective const* import = dynamic_cast<ImportDirective*>(node.get()))
|
||||
{
|
||||
string const& path = import->annotation().absolutePath;
|
||||
solAssert(!path.empty(), "");
|
||||
solAssert(m_sources.count(path), "");
|
||||
import->annotation().sourceUnit = m_sources[path].ast.get();
|
||||
toposort(&m_sources[path]);
|
||||
|
||||
Reference in New Issue
Block a user