summaryrefslogtreecommitdiff
path: root/compiler/optimizing/dead_code_elimination.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2024-10-11 16:49:12 +0200
committer VladimĂ­r Marko <vmarko@google.com> 2025-02-28 00:24:38 -0800
commit225ed9282e8676f13ec0b69786052684881596c3 (patch)
treeeef492bdc3c3f5fd8c0524e04514c49922332d2e /compiler/optimizing/dead_code_elimination.cc
parenta04fda337fa7bf06a2104a1a6c4dce04af110c18 (diff)
Remove `HInstruction::GetAllocator()`.
And clean up some uses of instruction->GetBlock()->GetGraph()->GetAllocator() Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Change-Id: Iae218056495a0b9cf94d2a3c1cebd6c8eb909096
Diffstat (limited to 'compiler/optimizing/dead_code_elimination.cc')
-rw-r--r--compiler/optimizing/dead_code_elimination.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/dead_code_elimination.cc b/compiler/optimizing/dead_code_elimination.cc
index 486625a71e..c367a20a06 100644
--- a/compiler/optimizing/dead_code_elimination.cc
+++ b/compiler/optimizing/dead_code_elimination.cc
@@ -201,7 +201,7 @@ static bool RemoveNonNullControlDependences(HBasicBlock* block, HBasicBlock* thr
user_block != throws &&
block->Dominates(user_block)) {
if (bound == nullptr) {
- bound = new (obj->GetBlock()->GetGraph()->GetAllocator()) HBoundType(obj);
+ bound = new (block->GetGraph()->GetAllocator()) HBoundType(obj);
bound->SetUpperBound(ti, /*can_be_null*/ false);
bound->SetReferenceTypeInfo(ti);
bound->SetCanBeNull(false);