diff --git a/mlir/lib/Tools/lsp-server-support/Transport.cpp b/mlir/lib/Tools/lsp-server-support/Transport.cpp index 1e90ab32281f5..ca7ffdf78d3a1 100644 --- a/mlir/lib/Tools/lsp-server-support/Transport.cpp +++ b/mlir/lib/Tools/lsp-server-support/Transport.cpp @@ -41,7 +41,7 @@ class Reply { void operator()(llvm::Expected reply); private: - StringRef method; + std::string method; std::atomic replied = {false}; llvm::json::Value id; JSONTransport *transport;