commit | 4ea6cb47173d65d1eee954dfd58f9048165cd4bd | [log] [tgz] |
---|---|---|
author | Christoffer Adamsen <christofferqa@google.com> | Tue Mar 26 07:26:00 2024 +0000 |
committer | Christoffer Adamsen <christofferqa@google.com> | Tue Mar 26 07:26:00 2024 +0000 |
tree | 12fde57e190481d8e8a027cf4457c99f03179024 | |
parent | 5071a4e2eb092ca9945d058a141876eee75e8843 [diff] |
Fix incorrect condition in isDeadFieldAccess Fixes: b/330833514 Change-Id: Idd7a7ec084d0865f6ebfa79e676df6e1ee2c65d1
diff --git a/src/main/java/com/android/tools/r8/optimize/argumentpropagation/ArgumentPropagatorMethodReprocessingEnqueuer.java b/src/main/java/com/android/tools/r8/optimize/argumentpropagation/ArgumentPropagatorMethodReprocessingEnqueuer.java index 89fc2b0..5056ee3 100644 --- a/src/main/java/com/android/tools/r8/optimize/argumentpropagation/ArgumentPropagatorMethodReprocessingEnqueuer.java +++ b/src/main/java/com/android/tools/r8/optimize/argumentpropagation/ArgumentPropagatorMethodReprocessingEnqueuer.java
@@ -231,7 +231,7 @@ private boolean isDeadFieldAccess(DexField fieldReference, ProgramMethod context) { ProgramField field = appView.appInfo().resolveField(fieldReference, context).getProgramField(); - return field != null && field.getOptimizationInfo().isDead(); + return field != null && field.getOptimizationInfo().getAbstractValue().isBottom(); } static class AffectedMethodUseRegistry