Skip to content
Snippets Groups Projects
Commit 58fa7e0b authored by Mick Jordan's avatar Mick Jordan
Browse files

Put String.format behind TruffleBoundary

parent 8bd47f41
Branches
No related tags found
No related merge requests found
...@@ -87,6 +87,7 @@ import com.oracle.truffle.r.runtime.RError; ...@@ -87,6 +87,7 @@ import com.oracle.truffle.r.runtime.RError;
import com.oracle.truffle.r.runtime.RInternalError; import com.oracle.truffle.r.runtime.RInternalError;
import com.oracle.truffle.r.runtime.RRuntime; import com.oracle.truffle.r.runtime.RRuntime;
import com.oracle.truffle.r.runtime.RType; import com.oracle.truffle.r.runtime.RType;
import com.oracle.truffle.r.runtime.Utils;
import com.oracle.truffle.r.runtime.data.RComplex; import com.oracle.truffle.r.runtime.data.RComplex;
import com.oracle.truffle.r.runtime.data.model.RAbstractComplexVector; import com.oracle.truffle.r.runtime.data.model.RAbstractComplexVector;
import com.oracle.truffle.r.runtime.data.model.RAbstractDoubleVector; import com.oracle.truffle.r.runtime.data.model.RAbstractDoubleVector;
...@@ -427,7 +428,7 @@ public final class PipelineToCastNode { ...@@ -427,7 +428,7 @@ public final class PipelineToCastNode {
case Any: case Any:
return CastToVectorNodeGen.create(step.preserveNonVector); return CastToVectorNodeGen.create(step.preserveNonVector);
default: default:
throw RInternalError.shouldNotReachHere(String.format("Unsupported type '%s' in AsVectorStep.", type)); throw RInternalError.shouldNotReachHere(Utils.stringFormat("Unsupported type '%s' in AsVectorStep.", type));
} }
} }
......
...@@ -902,4 +902,9 @@ public final class Utils { ...@@ -902,4 +902,9 @@ public final class Utils {
return obj.toString(); return obj.toString();
} }
@TruffleBoundary
public static String stringFormat(String format, Object... objects) {
return String.format(format, objects);
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment