mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Check availability of data objects already in analysis phase.
This commit is contained in:
1 parent
f3bdc79187
commit
2a5280faa0
7 files changed
+72
-27
No files matched your search
@@ -113,7 +113,20 @@ bool AssemblyStack::analyzeParsed(Object& _object)
|
||||
{
|
||||
solAssert(_object.code, "");
|
||||
_object.analysisInfo = make_shared<AsmAnalysisInfo>();
|
||||
AsmAnalyzer analyzer(*_object.analysisInfo, m_errorReporter, boost::none, languageToDialect(m_language, m_evmVersion));
|
||||
|
||||
set<YulString> objectNames;
|
||||
objectNames.insert(_object.name);
|
||||
for (auto const& subObject: _object.subIndexByName)
|
||||
objectNames.insert(subObject.first);
|
||||
|
||||
AsmAnalyzer analyzer(
|
||||
*_object.analysisInfo,
|
||||
m_errorReporter,
|
||||
boost::none,
|
||||
languageToDialect(m_language, m_evmVersion),
|
||||
{},
|
||||
objectNames
|
||||
);
|
||||
bool success = analyzer.analyze(*_object.code);
|
||||
for (auto& subNode: _object.subObjects)
|
||||
if (auto subObject = dynamic_cast<Object*>(subNode.get()))
|
||||
|
||||
Reference in new issue
Block a user