Fix merge to R8 3.1

Change-Id: Id4a9a2b9309e61f556b9ae6a830f0d399d444c5f
diff --git a/src/main/java/com/android/tools/r8/graph/RewrittenPrototypeDescription.java b/src/main/java/com/android/tools/r8/graph/RewrittenPrototypeDescription.java
index c016016..67e2a4f 100644
--- a/src/main/java/com/android/tools/r8/graph/RewrittenPrototypeDescription.java
+++ b/src/main/java/com/android/tools/r8/graph/RewrittenPrototypeDescription.java
@@ -388,6 +388,10 @@
         && argumentInfoCollection.isEmpty();
   }
 
+  public boolean hasExtraParameters() {
+    return !extraParameters.isEmpty();
+  }
+
   public Collection<ExtraParameter> getExtraParameters() {
     return extraParameters;
   }
diff --git a/src/main/java/com/android/tools/r8/verticalclassmerging/InterfaceTypeToClassTypeLensCodeRewriterHelperImpl.java b/src/main/java/com/android/tools/r8/verticalclassmerging/InterfaceTypeToClassTypeLensCodeRewriterHelperImpl.java
index e97d8c5..c871d8c 100644
--- a/src/main/java/com/android/tools/r8/verticalclassmerging/InterfaceTypeToClassTypeLensCodeRewriterHelperImpl.java
+++ b/src/main/java/com/android/tools/r8/verticalclassmerging/InterfaceTypeToClassTypeLensCodeRewriterHelperImpl.java
@@ -58,8 +58,7 @@
     DexMethod originalInvokedMethod = originalInvoke.getInvokedMethod();
     DexMethod rewrittenInvokedMethod = rewrittenInvoke.getInvokedMethod();
     if (lookupResult.getPrototypeChanges().getArgumentInfoCollection().hasRemovedArguments()) {
-      // There is no argument removal before the primary optimization pass.
-      assert false;
+      // Invokes with removed arguments are not handled in R8 3.1.
       return;
     }