summaryrefslogtreecommitdiff
path: root/compiler/optimizing/graph_checker.cc
diff options
context:
space:
mode:
author David Brazdil <dbrazdil@google.com> 2016-01-06 10:34:16 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2016-01-06 10:34:16 +0000
commit87bafaf563d35616804dd0cc0dbde176aac87817 (patch)
tree1317545f50f78eb7c9e4dd44ebfb256bdff0af11 /compiler/optimizing/graph_checker.cc
parentc917d195d8d8d05f90796b1e0842883fc608346d (diff)
parentf555258861aea7df8af9c2241ab761227fd2f66a (diff)
Merge "ART: Create BoundType for CheckCast early"
Diffstat (limited to 'compiler/optimizing/graph_checker.cc')
-rw-r--r--compiler/optimizing/graph_checker.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/compiler/optimizing/graph_checker.cc b/compiler/optimizing/graph_checker.cc
index 3b93b2b571..6d0bdbe19b 100644
--- a/compiler/optimizing/graph_checker.cc
+++ b/compiler/optimizing/graph_checker.cc
@@ -921,4 +921,16 @@ void SSAChecker::VisitConstant(HConstant* instruction) {
}
}
+void SSAChecker::VisitBoundType(HBoundType* instruction) {
+ VisitInstruction(instruction);
+
+ ScopedObjectAccess soa(Thread::Current());
+ if (!instruction->GetUpperBound().IsValid()) {
+ AddError(StringPrintf(
+ "%s %d does not have a valid upper bound RTI.",
+ instruction->DebugName(),
+ instruction->GetId()));
+ }
+}
+
} // namespace art