From 08624c50f488ecd845e48683e84726ff8c53e6a7 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Thu, 6 Aug 2015 21:10:30 -0700 Subject: [PATCH] Pass the verified method to the inlinee DexCompilationUnit. Sharpening and other optimizations in compiler driver rely on having it there. Also fixes a warning for the intrinsics code. bug:22866717 Change-Id: I6ac4f55e9e77452a4ea9e0d0dd0ad70124a95a55 --- compiler/optimizing/inliner.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/optimizing/inliner.cc b/compiler/optimizing/inliner.cc index 01065959d..4c746798b 100644 --- a/compiler/optimizing/inliner.cc +++ b/compiler/optimizing/inliner.cc @@ -276,12 +276,12 @@ bool HInliner::TryBuildAndInline(ArtMethod* resolved_method, nullptr, caller_compilation_unit_.GetClassLoader(), class_linker, - *resolved_method->GetDexFile(), + callee_dex_file, code_item, resolved_method->GetDeclaringClass()->GetDexClassDefIndex(), - resolved_method->GetDexMethodIndex(), + method_index, resolved_method->GetAccessFlags(), - nullptr); + compiler_driver_->GetVerifiedMethod(&callee_dex_file, method_index)); bool requires_ctor_barrier = false; -- 2.11.0