summaryrefslogtreecommitdiffstats
path: root/compiler/optimizing/graph_checker.h
diff options
context:
space:
mode:
authorNicolas Geoffray <ngeoffray@google.com>2015-06-29 13:43:54 +0100
committerNicolas Geoffray <ngeoffray@google.com>2015-06-29 22:12:48 +0100
commitb7a4790e5a2884e62f6dc85aca1455b145e2a7db (patch)
treebf0a44cef7f95ceae58cec7835a01ef134867725 /compiler/optimizing/graph_checker.h
parentd735c41e95a5d89cc9dad0c78d7d052579d8bd41 (diff)
downloadart-b7a4790e5a2884e62f6dc85aca1455b145e2a7db.tar.gz
art-b7a4790e5a2884e62f6dc85aca1455b145e2a7db.tar.bz2
art-b7a4790e5a2884e62f6dc85aca1455b145e2a7db.zip
Revert "Revert "Do not update the type of something we already know.""
This reverts commit 63107a804ce17db9789051e1fe310d99d1dae1cb. bug:22116987 (cherry picked from commit f9a199571417b5a5a62d94d05a064077e14dd2c4) Change-Id: Ia516f2cbce6d22df37f3a0854abdd0b54d3ea72d
Diffstat (limited to 'compiler/optimizing/graph_checker.h')
-rw-r--r--compiler/optimizing/graph_checker.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/optimizing/graph_checker.h b/compiler/optimizing/graph_checker.h
index b4314da03b..9284bb77b0 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 HCheckCast and HInstanceOf have HLoadClass as second input.
+ void VisitCheckCast(HCheckCast* check) OVERRIDE;
+ void VisitInstanceOf(HInstanceOf* check) OVERRIDE;
+
// Was the last visit of the graph valid?
bool IsValid() const {
return errors_.empty();