summaryrefslogtreecommitdiff
path: root/dex2oat/common_transaction_test.cc
diff options
context:
space:
mode:
author Nicolas Geoffray <ngeoffray@google.com> 2025-02-17 14:21:07 +0000
committer Nicolas Geoffray <ngeoffray@google.com> 2025-02-18 07:19:47 -0800
commitcb3c3b2819f326d54a6bd960a9a82c5290aa69b0 (patch)
tree1b71adef87aeebc9bdf92f6c66330c3a31fa1877 /dex2oat/common_transaction_test.cc
parentb4d4a7c4c368272c4368db35ddffbd8fcab544fb (diff)
Do not inline a method that was marked as un-compilable.
The compiler may have internally mark a method as not compilable. Do not clear the verification results from the compiler callbacks, we still need them during compilation. Test: 860-vdex-failure Bug: 395243275 Change-Id: I79ba61eb8a7ba6729b22c4c27fa83d8373fce03a
Diffstat (limited to 'dex2oat/common_transaction_test.cc')
-rw-r--r--dex2oat/common_transaction_test.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/dex2oat/common_transaction_test.cc b/dex2oat/common_transaction_test.cc
index d24acd575d..cd0671de4d 100644
--- a/dex2oat/common_transaction_test.cc
+++ b/dex2oat/common_transaction_test.cc
@@ -33,6 +33,7 @@ class CommonTransactionTestCompilerCallbacks : public CompilerCallbacks {
void AddUncompilableMethod([[maybe_unused]] MethodReference ref) override {}
void AddUncompilableClass([[maybe_unused]] ClassReference ref) override {}
void ClassRejected([[maybe_unused]] ClassReference ref) override {}
+ bool IsUncompilableMethod([[maybe_unused]] MethodReference ref) override { return false; }
verifier::VerifierDeps* GetVerifierDeps() const override { return nullptr; }