Skip to content

Commit c3478ba

Browse files
committed
Add explicit default switch branch to avoid too many runtime methods for compilation
1 parent 0b43348 commit c3478ba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/ctypes/CtypesModuleBuiltins.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1385,6 +1385,8 @@ static Object callGetFunc(Object restype, FFIType rtype, Object result, Object c
13851385
}
13861386
yield pointer.createReference();
13871387
}
1388+
// Needed because javac-generated default is not PE-friendly
1389+
default -> throw CompilerDirectives.shouldNotReachHere();
13881390
};
13891391
} catch (UnsupportedMessageException | InvalidArrayIndexException e) {
13901392
throw CompilerDirectives.shouldNotReachHere(e);

0 commit comments

Comments
 (0)