diff options
Diffstat (limited to 'compiler/optimizing/builder.cc')
-rw-r--r-- | compiler/optimizing/builder.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/builder.cc b/compiler/optimizing/builder.cc index 3960a26e92..ffa4cc328d 100644 --- a/compiler/optimizing/builder.cc +++ b/compiler/optimizing/builder.cc @@ -697,7 +697,7 @@ bool HGraphBuilder::BuildInvoke(const Instruction& instruction, &storage_index); } - if (resolved_method->GetDeclaringClass()->IsAssignableFrom(referrer_class.Get())) { + if (referrer_class.Get()->IsSubClass(resolved_method->GetDeclaringClass())) { // If the referrer class is the declaring class or a subclass // of the declaring class, no class initialization is needed // before the static method call. |