mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Properly set source location of bare blocks.
This commit is contained in:
@@ -1354,6 +1354,7 @@ bool ContractCompiler::visit(PlaceholderStatement const& _placeholderStatement)
|
||||
|
||||
bool ContractCompiler::visit(Block const& _block)
|
||||
{
|
||||
m_context.pushVisitedNodes(&_block);
|
||||
if (_block.unchecked())
|
||||
{
|
||||
solAssert(m_context.arithmetic() == Arithmetic::Checked, "");
|
||||
@@ -1372,6 +1373,7 @@ void ContractCompiler::endVisit(Block const& _block)
|
||||
}
|
||||
// Frees local variables declared in the scope of this block.
|
||||
popScopedVariables(&_block);
|
||||
m_context.popVisitedNodes();
|
||||
}
|
||||
|
||||
void ContractCompiler::appendMissingFunctions()
|
||||
|
||||
Reference in New Issue
Block a user