diff options
| author | 2015-06-08 15:53:16 +0000 | |
|---|---|---|
| committer | 2015-06-08 15:53:16 +0000 | |
| commit | 4a56acab1be232e07cee8735c29957fe6eb425d0 (patch) | |
| tree | b5c936df891b08521176065ccaddb1f9e27c9f46 /compiler/optimizing/inliner.cc | |
| parent | 7ce4b3d4c1c562959a8a3640df764ab50f1cbdf1 (diff) | |
Revert "Do a type check for knowing if we can inline."
Fails for some apps.
bug:21674542
This reverts commit 7ce4b3d4c1c562959a8a3640df764ab50f1cbdf1.
Change-Id: Ie25852c022391834858b2f5e34e8c7aeb1c3b3dd
Diffstat (limited to 'compiler/optimizing/inliner.cc')
| -rw-r--r-- | compiler/optimizing/inliner.cc | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/compiler/optimizing/inliner.cc b/compiler/optimizing/inliner.cc index 07d0dd6b49..ea613b2b01 100644 --- a/compiler/optimizing/inliner.cc +++ b/compiler/optimizing/inliner.cc @@ -120,9 +120,6 @@ static ArtMethod* FindVirtualOrInterfaceTarget(HInvoke* invoke, ArtMethod* resol // Statically knowing that the receiver has an interface type cannot // help us find what is the target method. return nullptr; - } else if (!resolved_method->GetDeclaringClass()->IsAssignableFrom(info.GetTypeHandle().Get())) { - // The method that we're trying to call is not in the receiver's class or super classes. - return nullptr; } ClassLinker* cl = Runtime::Current()->GetClassLinker(); |