diff options
Diffstat (limited to 'parallel-libs/streamexecutor/lib/Utils/Error.cpp')
-rw-r--r-- | parallel-libs/streamexecutor/lib/Utils/Error.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/parallel-libs/streamexecutor/lib/Utils/Error.cpp b/parallel-libs/streamexecutor/lib/Utils/Error.cpp index 78912c531ae..f3d09673c21 100644 --- a/parallel-libs/streamexecutor/lib/Utils/Error.cpp +++ b/parallel-libs/streamexecutor/lib/Utils/Error.cpp @@ -27,7 +27,7 @@ public: std::error_code convertToErrorCode() const override { llvm_unreachable( - "StreamExecutorError does not support convertion to std::error_code"); + "StreamExecutorError does not support conversion to std::error_code"); } std::string getErrorMessage() const { return Message; } @@ -44,8 +44,8 @@ char StreamExecutorError::ID = 0; namespace streamexecutor { -Error make_error(StringRef Message) { - return llvm::make_error<StreamExecutorError>(Message); +Error make_error(Twine Message) { + return llvm::make_error<StreamExecutorError>(Message.str()); } std::string consumeAndGetMessage(Error &&E) { |