Avoid potential null dereference
Test: TreeHugger
Change-Id: I3a6825a5f95eabe94a5f88d778d2535390893eea
diff --git a/compiler/optimizing/inliner.cc b/compiler/optimizing/inliner.cc
index b9f40a0..66433fb 100644
--- a/compiler/optimizing/inliner.cc
+++ b/compiler/optimizing/inliner.cc
@@ -832,12 +832,12 @@
ArtMethod* resolved_method = ResolveMethodFromInlineCache(
monomorphic_type, invoke_instruction, pointer_size);
- LOG_NOTE() << "Try inline monomorphic call to " << resolved_method->PrettyMethod();
if (resolved_method == nullptr) {
// Bogus AOT profile, bail.
DCHECK(Runtime::Current()->IsAotCompiler());
return false;
}
+ LOG_NOTE() << "Try inline monomorphic call to " << resolved_method->PrettyMethod();
HInstruction* receiver = invoke_instruction->InputAt(0);
HInstruction* cursor = invoke_instruction->GetPrevious();