diff options
Diffstat (limited to 'compiler/optimizing/loop_analysis.cc')
-rw-r--r-- | compiler/optimizing/loop_analysis.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/loop_analysis.cc b/compiler/optimizing/loop_analysis.cc index 95e81533da..5933d3d306 100644 --- a/compiler/optimizing/loop_analysis.cc +++ b/compiler/optimizing/loop_analysis.cc @@ -42,7 +42,7 @@ void LoopAnalysis::CalculateLoopBasicProperties(HLoopInformation* loop_info, // not cause loop peeling to happen as they either cannot be inside a loop, or by // definition cannot be loop exits (unconditional instructions), or are not beneficial for // the optimization. - HIf* hif = block->GetLastInstruction()->AsIf(); + HIf* hif = block->GetLastInstruction()->AsIfOrNull(); if (hif != nullptr && !loop_info->Contains(*hif->InputAt(0)->GetBlock())) { analysis_results->invariant_exits_num_++; } |