Undo backwards-compatibly change that prevents external identifer resolving.

This commit is contained in:
chriseth
2021-08-12 14:48:01 +02:00
parent 0755d65e80
commit 838514a718
3 changed files with 2 additions and 33 deletions
-7
View File
@@ -744,13 +744,6 @@ bool TypeChecker::visit(InlineAssembly const& _inlineAssembly)
bool
) -> bool
{
if (_context == yul::IdentifierContext::NonExternal)
{
// Hack until we can disallow any shadowing: If we found an internal reference,
// clear the external references, so that codegen does not use it.
_inlineAssembly.annotation().externalReferences.erase(& _identifier);
return false;
}
auto ref = _inlineAssembly.annotation().externalReferences.find(&_identifier);
if (ref == _inlineAssembly.annotation().externalReferences.end())
return false;