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

Merge pull request #373 in G/fastr from ~MICK.JORDAN_ORACLE.COM/fastr:feature-svm to master

* commit '58fa7e0b':
  Put String.format behind TruffleBoundary
parents 8bd47f41 58fa7e0b
Branches
No related tags found
No related merge requests found
......@@ -87,6 +87,7 @@ import com.oracle.truffle.r.runtime.RError;
import com.oracle.truffle.r.runtime.RInternalError;
import com.oracle.truffle.r.runtime.RRuntime;
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.model.RAbstractComplexVector;
import com.oracle.truffle.r.runtime.data.model.RAbstractDoubleVector;
......@@ -427,7 +428,7 @@ public final class PipelineToCastNode {
case Any:
return CastToVectorNodeGen.create(step.preserveNonVector);
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 {
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