Use const4 instead of const for zero constant
Change-Id: If541779cd13f8cc1784c487ceba6c4b955b83522
diff --git a/src/main/java/com/android/tools/r8/graph/DexEncodedMethod.java b/src/main/java/com/android/tools/r8/graph/DexEncodedMethod.java
index 434b091..6bd54aa 100644
--- a/src/main/java/com/android/tools/r8/graph/DexEncodedMethod.java
+++ b/src/main/java/com/android/tools/r8/graph/DexEncodedMethod.java
@@ -28,7 +28,7 @@
import com.android.tools.r8.cf.code.CfStackInstruction.Opcode;
import com.android.tools.r8.cf.code.CfStore;
import com.android.tools.r8.cf.code.CfThrow;
-import com.android.tools.r8.code.Const;
+import com.android.tools.r8.code.Const4;
import com.android.tools.r8.code.ConstString;
import com.android.tools.r8.code.InstanceOf;
import com.android.tools.r8.code.Instruction;
@@ -1011,7 +1011,7 @@
}
public DexCode buildEmptyThrowingDexCode() {
- Instruction[] insn = {new Const(0, 0), new Throw(0)};
+ Instruction[] insn = {new Const4(0, 0), new Throw(0)};
return generateCodeFromTemplate(1, 0, insn);
}