summaryrefslogtreecommitdiff
path: root/compiler/optimizing/bounds_check_elimination.cc
diff options
context:
space:
mode:
author Santiago Aboy Solanes <solanes@google.com> 2023-02-20 14:26:23 +0000
committer Santiago Aboy Solanes <solanes@google.com> 2023-02-22 11:47:48 +0000
commite05bc3e1d03e8cba0c16a1b738591a2e972235b6 (patch)
treec5c8e4342b31ad445c0c80cf08cf671dc598e33e /compiler/optimizing/bounds_check_elimination.cc
parent452605be671e499ae2c535f7c7a37587551dc65a (diff)
Set more RTI only if they are valid
Follow-up to aosp/2442280. We haven't seen crashes with these ones, but we can't guarantee that the RTI will be valid in these code paths. Test: art/test/testrunner/testrunner.py --host --64 --optimizing -b Change-Id: I80da85a6549ba0275a80027016363e0cf9fb8045
Diffstat (limited to 'compiler/optimizing/bounds_check_elimination.cc')
-rw-r--r--compiler/optimizing/bounds_check_elimination.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/bounds_check_elimination.cc b/compiler/optimizing/bounds_check_elimination.cc
index 52f1e9a934..210f978cc2 100644
--- a/compiler/optimizing/bounds_check_elimination.cc
+++ b/compiler/optimizing/bounds_check_elimination.cc
@@ -2011,7 +2011,7 @@ class BCEVisitor : public HGraphVisitor {
phi->SetRawInputAt(0, instruction);
phi->SetRawInputAt(1, zero);
if (type == DataType::Type::kReference) {
- phi->SetReferenceTypeInfo(instruction->GetReferenceTypeInfo());
+ phi->SetReferenceTypeInfoIfValid(instruction->GetReferenceTypeInfo());
}
new_preheader->AddPhi(phi);
return phi;