Adjust code in compiledWithOptimizing
Forgot to upload my latest changes from:
https://android-review.googlesource.com/c/platform/art/+/1695656
Test: 449-checker-bce
Bug: 186500342
Change-Id: Ifdb45858c2543ec2b8839167ac16c7e37a666478
diff --git a/test/common/runtime_state.cc b/test/common/runtime_state.cc
index ad11679..4c22bd1 100644
--- a/test/common/runtime_state.cc
+++ b/test/common/runtime_state.cc
@@ -150,11 +150,9 @@
const char* end = strchr(filter, ' ');
std::string string_filter(filter, (end == nullptr) ? strlen(filter) : end - filter);
CompilerFilter::Filter compiler_filter;
- if (CompilerFilter::ParseCompilerFilter(string_filter.c_str(), &compiler_filter)) {
- return CompilerFilter::IsAotCompilationEnabled(compiler_filter) ? JNI_TRUE : JNI_FALSE;
- } else {
- return JNI_FALSE;
- }
+ bool success = CompilerFilter::ParseCompilerFilter(string_filter.c_str(), &compiler_filter);
+ CHECK(success);
+ return CompilerFilter::IsAotCompilationEnabled(compiler_filter) ? JNI_TRUE : JNI_FALSE;
}
// No filter passed, assume default has AOT.