summaryrefslogtreecommitdiff
path: root/compiler/optimizing/inliner.cc
diff options
context:
space:
mode:
author Greg Kaiser <gkaiser@google.com> 2020-09-09 05:45:35 -0700
committer Greg Kaiser <gkaiser@google.com> 2020-09-09 05:45:35 -0700
commit306188923b6210a5574b1dc534e99cf60b43768c (patch)
treef820a67e6d08244c4e3367caf717d06e4291bedd /compiler/optimizing/inliner.cc
parent12891f9756eb0a6f08564d4c8df21ee1803c5f79 (diff)
Avoid potential null dereference
Test: TreeHugger Change-Id: I3a6825a5f95eabe94a5f88d778d2535390893eea
Diffstat (limited to 'compiler/optimizing/inliner.cc')
-rw-r--r--compiler/optimizing/inliner.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/inliner.cc b/compiler/optimizing/inliner.cc
index b9f40a0758..66433fbddd 100644
--- a/compiler/optimizing/inliner.cc
+++ b/compiler/optimizing/inliner.cc
@@ -832,12 +832,12 @@ bool HInliner::TryInlineMonomorphicCall(HInvoke* invoke_instruction,
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();