mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Do not add utility file for "viaIR".
This commit is contained in:
parent
0ebb95d63b
commit
7e854fcdf6
@ -922,8 +922,11 @@ map<string, unsigned> CompilerStack::sourceIndices() const
|
||||
unsigned index = 0;
|
||||
for (auto const& s: m_sources)
|
||||
indices[s.first] = index++;
|
||||
solAssert(!indices.count(CompilerContext::yulUtilityFileName()), "");
|
||||
indices[CompilerContext::yulUtilityFileName()] = index++;
|
||||
if (!m_viaIR)
|
||||
{
|
||||
solAssert(!indices.count(CompilerContext::yulUtilityFileName()), "");
|
||||
indices[CompilerContext::yulUtilityFileName()] = index++;
|
||||
}
|
||||
return indices;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user