summaryrefslogtreecommitdiff
path: root/compiler/optimizing
diff options
context:
space:
mode:
author Santiago Aboy Solanes <solanes@google.com> 2022-11-04 11:22:45 +0000
committer Santiago Aboy Solanes <solanes@google.com> 2022-11-04 17:27:35 +0000
commit6df70e9ccdf89c99350a5495e68b493167872ceb (patch)
tree614438ce06cb66c87d0d077349d531958f06bd73 /compiler/optimizing
parentf6fb924bae391c2aa663e55665467115b098520b (diff)
Cleanup: Use HBasicBlock's IsCatchBlock method
We were doing the same thing as that method does so just call it. Test: art/test/testrunner/testrunner.py --host --64 --optimizing -b Change-Id: I5a80f0a8c536489f382b9149ccdc1b9f6b251ae3
Diffstat (limited to 'compiler/optimizing')
-rw-r--r--compiler/optimizing/load_store_elimination.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/optimizing/load_store_elimination.cc b/compiler/optimizing/load_store_elimination.cc
index f520f9c988..2ee836a9bd 100644
--- a/compiler/optimizing/load_store_elimination.cc
+++ b/compiler/optimizing/load_store_elimination.cc
@@ -1752,8 +1752,7 @@ void LSEVisitor::MergePredecessorRecords(HBasicBlock* block) {
ScopedArenaVector<ValueRecord>& heap_values = heap_values_for_[block->GetBlockId()];
DCHECK(heap_values.empty());
size_t num_heap_locations = heap_location_collector_.GetNumberOfHeapLocations();
- if (block->GetPredecessors().empty() || (block->GetTryCatchInformation() != nullptr &&
- block->GetTryCatchInformation()->IsCatchBlock())) {
+ if (block->GetPredecessors().empty() || block->IsCatchBlock()) {
DCHECK_IMPLIES(block->GetPredecessors().empty(), block->IsEntryBlock());
heap_values.resize(num_heap_locations,
{/*value=*/Value::PureUnknown(), /*stored_by=*/Value::PureUnknown()});