Added missing return.
Rationale:
Slightly more efficient to return right after !IsCompilable()
(with a single message) than relying on falling into the
necessarily true IsMethodUnverified() (with another message).
Note that this subtle change cannot be easily tested (since
behavior is the same), but e.g. 675-checker-unverified-method
at least provides code coverage.
Bug: 72957776
Test: test-art-host
Change-Id: I7044e60e3c10367a1fa024573dc6dbbb5e9243ad
diff --git a/compiler/optimizing/inliner.cc b/compiler/optimizing/inliner.cc
index b9ae0ff..4fc7262 100644
--- a/compiler/optimizing/inliner.cc
+++ b/compiler/optimizing/inliner.cc
@@ -1471,6 +1471,7 @@
LOG_FAIL(stats_, MethodCompilationStat::kNotInlinedNotVerified)
<< "Method " << method->PrettyMethod()
<< " has soft failures un-handled by the compiler, so it cannot be inlined";
+ return false;
}
if (IsMethodUnverified(compiler_driver_, method)) {