mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Modified SourceLocation::hasText() to allow empty source.
This commit is contained in:
@@ -54,9 +54,8 @@ T AsmJsonImporter::createAsmNode(Json::Value const& _node)
|
||||
{
|
||||
T r;
|
||||
r.location = createSourceLocation(_node);
|
||||
astAssert(!r.location.isValid() || r.location.hasText(), "Invalid source location in Asm AST");
|
||||
astAssert(r.location.hasText(), "Invalid source location in Asm AST");
|
||||
return r;
|
||||
|
||||
}
|
||||
|
||||
Json::Value AsmJsonImporter::member(Json::Value const& _node, string const& _name)
|
||||
|
||||
Reference in New Issue
Block a user