Ignore unimplemented functions for storage returns.

This commit is contained in:
Daniel Kirchner
2018-11-13 12:18:22 +01:00
parent 4eaed37b96
commit b5e9d849ef
4 changed files with 14 additions and 2 deletions
+5 -2
View File
@@ -28,8 +28,11 @@ bool ControlFlowAnalyzer::analyze(ASTNode const& _astRoot)
bool ControlFlowAnalyzer::visit(FunctionDefinition const& _function)
{
auto const& functionFlow = m_cfg.functionFlow(_function);
checkUnassignedStorageReturnValues(_function, functionFlow.entry, functionFlow.exit);
if (_function.isImplemented())
{
auto const& functionFlow = m_cfg.functionFlow(_function);
checkUnassignedStorageReturnValues(_function, functionFlow.entry, functionFlow.exit);
}
return false;
}