summaryrefslogtreecommitdiffstats
path: root/oatdump
diff options
context:
space:
mode:
authorAndreas Gampe <agampe@google.com>2017-02-14 11:10:34 -0800
committerAndreas Gampe <agampe@google.com>2017-02-14 11:44:48 -0800
commitfa4333dcb481e564f54726b4e6f8153612df835e (patch)
treeae597c7587dc214434a180962c4373d3748f51ab /oatdump
parent2d98ba68f13dc219c088a12f369c5778bf398f14 (diff)
downloadandroid_art-fa4333dcb481e564f54726b4e6f8153612df835e.tar.gz
android_art-fa4333dcb481e564f54726b4e6f8153612df835e.tar.bz2
android_art-fa4333dcb481e564f54726b4e6f8153612df835e.zip
ART: Add operator == and != with nullptr to Handle
Get it in line with ObjPtr and prettify our code. Test: m Change-Id: I1322e2a9bc7a85d7f2441034a19bf4d807b81a0e
Diffstat (limited to 'oatdump')
-rw-r--r--oatdump/oatdump.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/oatdump/oatdump.cc b/oatdump/oatdump.cc
index ce63e18921..9a3b28b16e 100644
--- a/oatdump/oatdump.cc
+++ b/oatdump/oatdump.cc
@@ -1473,7 +1473,7 @@ class OatDumper {
Runtime* const runtime = Runtime::Current();
Handle<mirror::DexCache> dex_cache(
hs->NewHandle(runtime->GetClassLinker()->RegisterDexFile(*dex_file, nullptr)));
- CHECK(dex_cache.Get() != nullptr);
+ CHECK(dex_cache != nullptr);
DCHECK(options_.class_loader_ != nullptr);
return verifier::MethodVerifier::VerifyMethodAndDump(
soa.Self(), vios, dex_method_idx, dex_file, dex_cache, *options_.class_loader_,
@@ -2950,7 +2950,7 @@ class IMTDumper {
const DexFile::ClassDef& class_def = dex_file->GetClassDef(class_def_index);
const char* descriptor = dex_file->GetClassDescriptor(class_def);
h_klass.Assign(class_linker->FindClass(self, descriptor, h_class_loader));
- if (h_klass.Get() == nullptr) {
+ if (h_klass == nullptr) {
std::cerr << "Warning: could not load " << descriptor << std::endl;
continue;
}