diff options
| author | 2020-09-09 05:45:35 -0700 | |
|---|---|---|
| committer | 2020-09-09 05:45:35 -0700 | |
| commit | 306188923b6210a5574b1dc534e99cf60b43768c (patch) | |
| tree | f820a67e6d08244c4e3367caf717d06e4291bedd /compiler/optimizing/inliner.cc | |
| parent | 12891f9756eb0a6f08564d4c8df21ee1803c5f79 (diff) | |
Avoid potential null dereference
Test: TreeHugger
Change-Id: I3a6825a5f95eabe94a5f88d778d2535390893eea
Diffstat (limited to 'compiler/optimizing/inliner.cc')
| -rw-r--r-- | compiler/optimizing/inliner.cc | 2 |
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(); |