diff options
| author | 2022-02-18 15:27:43 +0000 | |
|---|---|---|
| committer | 2022-02-25 08:18:14 +0000 | |
| commit | 6cdabe1f2e760af91d8a23d47e4bbf06d0120bd4 (patch) | |
| tree | ebf27edb910b6967914c3084c9f924035d12daa2 /runtime/mirror/class-alloc-inl.h | |
| parent | 872ec72de447b2803894e17253399a54a4c10e1f (diff) | |
Update runtime/ implications to use (D)CHECK_IMPLIES
Follow-up to aosp/1988868 in which we added the (D)CHECK_IMPLIES
macro. This CL uses it on compiler/ occurrences found by a regex.
Test: art/test/testrunner/testrunner.py --host --64 --optimizing -b
Change-Id: Id4ee45b41bad85a1f0d98c1e88af6baa3e34a662
Diffstat (limited to 'runtime/mirror/class-alloc-inl.h')
| -rw-r--r-- | runtime/mirror/class-alloc-inl.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/mirror/class-alloc-inl.h b/runtime/mirror/class-alloc-inl.h index 5627b4956e..ed3967b798 100644 --- a/runtime/mirror/class-alloc-inl.h +++ b/runtime/mirror/class-alloc-inl.h @@ -57,7 +57,7 @@ inline ObjPtr<Object> Class::Alloc(Thread* self, gc::AllocatorType allocator_typ break; case Class::AddFinalizer::kNoAddFinalizer: add_finalizer = false; - DCHECK(!kCheckAddFinalizer || !IsFinalizable()); + DCHECK_IMPLIES(kCheckAddFinalizer, !IsFinalizable()); break; } // Note that the `this` pointer may be invalidated after the allocation. |