diff options
Diffstat (limited to 'compiler/dex/inline_method_analyser.cc')
-rw-r--r-- | compiler/dex/inline_method_analyser.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/dex/inline_method_analyser.cc b/compiler/dex/inline_method_analyser.cc index b0f025d092..32019657d3 100644 --- a/compiler/dex/inline_method_analyser.cc +++ b/compiler/dex/inline_method_analyser.cc @@ -375,10 +375,10 @@ bool AnalyseConstructor(const CodeItemDataAccessor* code_item, return false; } static_assert(kMaxConstructorIPuts == 3, "Unexpected limit"); // Code below depends on this. - DCHECK(iputs[0].field_index != DexFile::kDexNoIndex16 || - iputs[1].field_index == DexFile::kDexNoIndex16); - DCHECK(iputs[1].field_index != DexFile::kDexNoIndex16 || - iputs[2].field_index == DexFile::kDexNoIndex16); + DCHECK_IMPLIES(iputs[0].field_index == DexFile::kDexNoIndex16, + iputs[1].field_index == DexFile::kDexNoIndex16); + DCHECK_IMPLIES(iputs[1].field_index == DexFile::kDexNoIndex16, + iputs[2].field_index == DexFile::kDexNoIndex16); #define STORE_IPUT(n) \ do { \ |