Remove incorrect asserts in Instruction#verifyTypes
Change-Id: Ib34db8c7adb9764f5436f9f82f046064698eaf4b
diff --git a/src/main/java/com/android/tools/r8/ir/code/Instruction.java b/src/main/java/com/android/tools/r8/ir/code/Instruction.java
index 9321203..f02c532 100644
--- a/src/main/java/com/android/tools/r8/ir/code/Instruction.java
+++ b/src/main/java/com/android/tools/r8/ir/code/Instruction.java
@@ -1460,20 +1460,6 @@
}
public boolean verifyTypes(AppView<?> appView, VerifyTypesHelper verifyTypesHelper) {
- if (outValue != null) {
- TypeElement outTypeElement = outValue.getType();
- if (outTypeElement.isArrayType()) {
- DexType outBaseType =
- outTypeElement
- .asArrayType()
- .toDexType(appView.dexItemFactory())
- .toBaseType(appView.dexItemFactory());
- assert appView.graphLens().lookupType(outBaseType) == outBaseType;
- } else if (outTypeElement.isClassType()) {
- DexType outType = outTypeElement.asClassType().getClassType();
- assert appView.graphLens().lookupType(outType) == outType;
- }
- }
return true;
}