< prev index next >

test/testlibrary/jittester/src/jdk/test/lib/jittester/Switch.java

Print this page

        

@@ -28,10 +28,11 @@
 
 public class Switch extends IRNode {
     private final int caseBlockIdx;
 
     public Switch(int level, List<IRNode> chldrn, int caseBlockIdx) {
+        super(chldrn.get(caseBlockIdx).getResultType());
         this.level = level;
         addChildren(chldrn);
         this.caseBlockIdx = caseBlockIdx;
     }
 
< prev index next >