diff --git a/com.oracle.truffle.r.ffi.impl/src/com/oracle/truffle/r/ffi/impl/nodes/CoerceNodes.java b/com.oracle.truffle.r.ffi.impl/src/com/oracle/truffle/r/ffi/impl/nodes/CoerceNodes.java index 77f65033f888619c92ae9ddbcd7aea391793ec14..64a35769dfca90ad558e2c7187dc5f3a35f905d6 100644 --- a/com.oracle.truffle.r.ffi.impl/src/com/oracle/truffle/r/ffi/impl/nodes/CoerceNodes.java +++ b/com.oracle.truffle.r.ffi.impl/src/com/oracle/truffle/r/ffi/impl/nodes/CoerceNodes.java @@ -176,7 +176,7 @@ public final class CoerceNodes { } // Note: caches should cover all valid possibilities - @Specialization(guards = {"!isS4Object(value)", "cachedMode == mode", "isValidMode(cachedMode)", "isNotList(value)",}, limit = "99") + @Specialization(guards = {"!isS4Object(value)", "cachedMode == mode", "isValidMode(cachedMode)", "isNotList(value)"}, limit = "99") Object doCachedNotList(Object value, @SuppressWarnings("unused") int mode, @Cached("mode") @SuppressWarnings("unused") int cachedMode, @Cached("createCastNode(cachedMode)") CastNode castNode) { @@ -192,7 +192,7 @@ public final class CoerceNodes { } @Specialization(replaces = {"doCachedNotList", "doCached"}, guards = {"!isS4Object(value)", "isValidMode(mode)"}) - Object doCached(Object value, @SuppressWarnings("unused") int mode) { + Object doCached(Object value, int mode) { String type = value != null ? value.getClass().getSimpleName() : "null"; throw RInternalError.unimplemented(String.format("Rf_coerceVector unimplemented for type %s or mode %s.", type, mode)); }