diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2015-06-19 10:35:42 +0100 |
---|---|---|
committer | Nicolas Geoffray <ngeoffray@google.com> | 2015-06-19 10:37:59 +0100 |
commit | 66389fbeb41c981648bb2e1e7e2f43089f095591 (patch) | |
tree | f6de19a8521f2e33d5c75771867bcf569e6d2ef4 /compiler/optimizing/graph_visualizer.cc | |
parent | 822c00d0fe3b70d1f1fe5bac03713674d45f8173 (diff) |
Verifier: check an aput, even if we know it will fail.
bug:21867457
Change-Id: I01e333d858995d0e1e083a50cf8d460a86381f2c
Diffstat (limited to 'compiler/optimizing/graph_visualizer.cc')
-rw-r--r-- | compiler/optimizing/graph_visualizer.cc | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/compiler/optimizing/graph_visualizer.cc b/compiler/optimizing/graph_visualizer.cc index b64791788d..9fd8d00839 100644 --- a/compiler/optimizing/graph_visualizer.cc +++ b/compiler/optimizing/graph_visualizer.cc @@ -359,9 +359,13 @@ class HGraphVisualizerPrinter : public HGraphVisitor { && is_after_pass_) { if (instruction->GetType() == Primitive::kPrimNot) { if (instruction->IsLoadClass()) { + ReferenceTypeInfo info = instruction->AsLoadClass()->GetLoadedClassRTI(); ScopedObjectAccess soa(Thread::Current()); - StartAttributeStream("klass") - << PrettyClass(instruction->AsLoadClass()->GetLoadedClassRTI().GetTypeHandle().Get()); + if (info.GetTypeHandle().GetReference() != nullptr) { + StartAttributeStream("klass") << info.GetTypeHandle().Get(); + } else { + StartAttributeStream("klass") << "unresolved"; + } } else { ReferenceTypeInfo info = instruction->GetReferenceTypeInfo(); if (info.IsTop()) { |