summaryrefslogtreecommitdiff
path: root/runtime/mirror/string-alloc-inl.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/mirror/string-alloc-inl.h')
-rw-r--r--runtime/mirror/string-alloc-inl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime/mirror/string-alloc-inl.h b/runtime/mirror/string-alloc-inl.h
index 5f3abd75e3..533053d934 100644
--- a/runtime/mirror/string-alloc-inl.h
+++ b/runtime/mirror/string-alloc-inl.h
@@ -45,7 +45,7 @@ class SetStringCountVisitor {
// Avoid AsString as object is not yet in live bitmap or allocation stack.
ObjPtr<String> string = ObjPtr<String>::DownCast(obj);
string->SetCount(count_);
- DCHECK(!string->IsCompressed() || kUseStringCompression);
+ DCHECK_IMPLIES(string->IsCompressed(), kUseStringCompression);
}
private:
@@ -65,7 +65,7 @@ class SetStringCountAndBytesVisitor {
// Avoid AsString as object is not yet in live bitmap or allocation stack.
ObjPtr<String> string = ObjPtr<String>::DownCast(obj);
string->SetCount(count_);
- DCHECK(!string->IsCompressed() || kUseStringCompression);
+ DCHECK_IMPLIES(string->IsCompressed(), kUseStringCompression);
int32_t length = String::GetLengthFromCount(count_);
const uint8_t* const src = reinterpret_cast<uint8_t*>(src_array_->GetData()) + offset_;
if (string->IsCompressed()) {