aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorDaniel Kirchner <daniel@ekpyron.org>2018-11-13 19:12:08 +0800
committerDaniel Kirchner <daniel@ekpyron.org>2018-11-13 19:18:22 +0800
commitb5e9d849ef93589ab8eb59e1becbc4d7a8250ccb (patch)
tree194fa0e38bd127f84beb15b7d6f667ea665b483c /libsolidity
parent4eaed37b96c219c0486a125fc34c916cdb729026 (diff)
downloaddexon-solidity-b5e9d849ef93589ab8eb59e1becbc4d7a8250ccb.tar.gz
dexon-solidity-b5e9d849ef93589ab8eb59e1becbc4d7a8250ccb.tar.zst
dexon-solidity-b5e9d849ef93589ab8eb59e1becbc4d7a8250ccb.zip
Ignore unimplemented functions for storage returns.
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/analysis/ControlFlowAnalyzer.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/libsolidity/analysis/ControlFlowAnalyzer.cpp b/libsolidity/analysis/ControlFlowAnalyzer.cpp
index ab6569be..8a608552 100644
--- a/libsolidity/analysis/ControlFlowAnalyzer.cpp
+++ b/libsolidity/analysis/ControlFlowAnalyzer.cpp
@@ -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;
}