From 6df70e9ccdf89c99350a5495e68b493167872ceb Mon Sep 17 00:00:00 2001 From: Santiago Aboy Solanes Date: Fri, 4 Nov 2022 11:22:45 +0000 Subject: 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 --- compiler/optimizing/load_store_elimination.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'compiler/optimizing') 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& 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()}); -- cgit v1.2.3-59-g8ed1b