commit | 26bcbdec765ef63cabc86d9b3c959a65a25d5309 | [log] [tgz] |
---|---|---|
author | Christoffer Quist Adamsen <christofferqa@google.com> | Tue Mar 03 20:50:12 2020 +0100 |
committer | Christoffer Quist Adamsen <christofferqa@google.com> | Thu Mar 05 11:56:11 2020 +0000 |
tree | 3ce2077f008e2996f9c6b8a5e9dd91ab1ac4319b | |
parent | 09a7230b0c66584fede374ec2f66866aa58651ec [diff] |
Mark proto fields with hazzer field as used reflectively Change-Id: I953f75707a69a7a3cf9f6341a1f6ed255364684a
diff --git a/src/main/java/com/android/tools/r8/ir/analysis/proto/schema/ProtoEnqueuerExtension.java b/src/main/java/com/android/tools/r8/ir/analysis/proto/schema/ProtoEnqueuerExtension.java index 4ff6283..943d559 100644 --- a/src/main/java/com/android/tools/r8/ir/analysis/proto/schema/ProtoEnqueuerExtension.java +++ b/src/main/java/com/android/tools/r8/ir/analysis/proto/schema/ProtoEnqueuerExtension.java
@@ -372,6 +372,7 @@ newlyLiveField = protoFieldInfo.getOneOfCaseField(appView, protoMessageInfo); } else if (protoFieldInfo.hasHazzerBitField(protoMessageInfo)) { newlyLiveField = protoFieldInfo.getHazzerBitField(appView, protoMessageInfo); + enqueuer.registerReflectiveFieldAccess(valueStorage.field, dynamicMethod); } } else { // For one-of fields, mark the one-of field as live if the one-of-case field is live, and