diff options
author | Nicolas Geoffray <ngeoffray@google.com> | 2015-06-19 11:02:16 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2015-06-19 11:02:17 +0000 |
commit | e43875749fbc674fbad23ba11af64f25ab2add0d (patch) | |
tree | 8cd2ff04d87f76d87fa9c21c43fab04c9abe9c51 /compiler/optimizing/graph_visualizer.cc | |
parent | be59b85251f085359d40bb89b1aa7e037c8ac0ef (diff) | |
parent | 66389fbeb41c981648bb2e1e7e2f43089f095591 (diff) |
Merge "Verifier: check an aput, even if we know it will fail."
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()) { |