| commit | 3699bf31d196048f6d6e0725536bb3bfc31d6c39 | [log] [tgz] |
|---|---|---|
| author | Christoffer Adamsen <christofferqa@google.com> | Wed Jul 31 15:05:58 2024 +0200 |
| committer | Christoffer Adamsen <christofferqa@google.com> | Wed Jul 31 15:40:20 2024 +0000 |
| tree | 9c745d10596c666a5ef71230d0fc7413dd54badc | |
| parent | 9150d53320dee5b99799066b2d31ab945a46d868 [diff] |
Soft pin classes with kept constructors Change-Id: I7de3032e19ebfe2f089cc2c9f7bd11e5953ca362
diff --git a/src/main/java/com/android/tools/r8/shaking/Enqueuer.java b/src/main/java/com/android/tools/r8/shaking/Enqueuer.java index d4fd18a..1766f40 100644 --- a/src/main/java/com/android/tools/r8/shaking/Enqueuer.java +++ b/src/main/java/com/android/tools/r8/shaking/Enqueuer.java
@@ -2462,6 +2462,7 @@ private void enqueueHolderWithDependentInstanceConstructor( ProgramMethod instanceInitializer, Set<ProguardKeepRuleBase> reasons) { DexProgramClass holder = instanceInitializer.getHolder(); + applyMinimumKeepInfoWhenLive(holder, KeepClassInfo.newEmptyJoiner().disallowOptimization()); enqueueKeepRuleInstantiatedType(holder, reasons, instanceInitializer.getDefinition()); }