Fix incorrect dex2oat check
Should have been VerifyOnlyProfile.
Bug: 27688727
(cherry picked from commit 821dad8f384f8c520f062a317b3b66c78aa12b47)
Change-Id: I451ce8264115283132bc9e34708331a5c62817bf
diff --git a/dex2oat/dex2oat.cc b/dex2oat/dex2oat.cc
index c2d5e4d..0debd42 100644
--- a/dex2oat/dex2oat.cc
+++ b/dex2oat/dex2oat.cc
@@ -813,7 +813,7 @@
Usage("Profile file should not be specified with both --profile-file-fd and --profile-file");
}
- if (compiler_options_->IsVerificationEnabled() && !have_profile_file && !have_profile_fd) {
+ if (compiler_options_->VerifyOnlyProfile() && !have_profile_file && !have_profile_fd) {
Usage("verify-profile compiler filter must be used with a profile file or fd");
}