diff options
Diffstat (limited to 'compiler/optimizing/graph_checker.h')
-rw-r--r-- | compiler/optimizing/graph_checker.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/optimizing/graph_checker.h b/compiler/optimizing/graph_checker.h index b4314da03b..bafa69d422 100644 --- a/compiler/optimizing/graph_checker.h +++ b/compiler/optimizing/graph_checker.h @@ -48,6 +48,10 @@ class GraphChecker : public HGraphDelegateVisitor { // Check that the HasBoundsChecks() flag is set for bounds checks. void VisitBoundsCheck(HBoundsCheck* check) OVERRIDE; + // Check that the Return and ReturnVoid jump to the exit block. + void VisitReturn(HReturn* ret) OVERRIDE; + void VisitReturnVoid(HReturnVoid* ret) OVERRIDE; + // Was the last visit of the graph valid? bool IsValid() const { return errors_.empty(); |