diff --git a/src/main/java/com/android/tools/r8/ir/optimize/PeepholeOptimizer.java b/src/main/java/com/android/tools/r8/ir/optimize/PeepholeOptimizer.java
index c0a67fc4a..c2e0f0a24 100644
--- a/src/main/java/com/android/tools/r8/ir/optimize/PeepholeOptimizer.java
+++ b/src/main/java/com/android/tools/r8/ir/optimize/PeepholeOptimizer.java
@@ -102,7 +102,7 @@ public class PeepholeOptimizer {
       // If the instruction can throw and one of the normal successor blocks has a catch handler,
       // then we cannot merge the instruction into the predecessor, since this would change the
       // exceptional control flow.
-      if (instruction.instructionInstanceCanThrow()) {
+      if (instruction.instructionTypeCanThrow()) {
         for (BasicBlock normalSuccessor : normalSuccessors) {
           if (normalSuccessor.hasCatchHandlers()) {
             return;