diff options
| -rw-r--r-- | dex2oat/linker/oat_writer.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/dex2oat/linker/oat_writer.cc b/dex2oat/linker/oat_writer.cc index 31b6ac305c..28ded6ef85 100644 --- a/dex2oat/linker/oat_writer.cc +++ b/dex2oat/linker/oat_writer.cc @@ -3362,9 +3362,10 @@ bool OatWriter::WriteDexFile(OutputStream* out, return false; } // update_input_vdex disables compact dex and layout. - if (!update_input_vdex && (profile_compilation_info_ != nullptr || - compact_dex_level_ != CompactDexLevel::kCompactDexLevelNone)) { - CHECK(!update_input_vdex) << "We should never update the input vdex when doing dexlayout"; + if (profile_compilation_info_ != nullptr || + compact_dex_level_ != CompactDexLevel::kCompactDexLevelNone) { + CHECK(!update_input_vdex) + << "We should never update the input vdex when doing dexlayout or compact dex"; if (!LayoutAndWriteDexFile(out, oat_dex_file)) { return false; } |