From f7eedfe04e5a92861dd0de68ea7642dbc4729ac1 Mon Sep 17 00:00:00 2001 From: Santiago Aboy Solanes Date: Fri, 17 Jun 2022 12:04:17 +0100 Subject: Get the ClassLoader from the DexCache in ReferenceTypePropagation We were passing it down as a parameter when we can simply get it from the dex cache. Passing it down as a parameter brings the possibility of using the wrong class loader and can be the source of bugs. Test: art/test/testrunner/testrunner.py --host --64 --optimizing -b Change-Id: I7fbf3d6f79186d4eb695c77b876291d02e3170ba --- compiler/optimizing/ssa_builder.cc | 1 - 1 file changed, 1 deletion(-) (limited to 'compiler/optimizing/ssa_builder.cc') diff --git a/compiler/optimizing/ssa_builder.cc b/compiler/optimizing/ssa_builder.cc index 67ee83c9dd..a36b74bba9 100644 --- a/compiler/optimizing/ssa_builder.cc +++ b/compiler/optimizing/ssa_builder.cc @@ -538,7 +538,6 @@ GraphAnalysisResult SsaBuilder::BuildSsa() { // Compute type of reference type instructions. The pass assumes that // NullConstant has been fixed up. ReferenceTypePropagation(graph_, - class_loader_, dex_cache_, /* is_first_run= */ true).Run(); -- cgit v1.2.3-59-g8ed1b