diff options
Diffstat (limited to 'contrib/llvm-project/lldb/source/Target/TraceExporter.cpp')
-rw-r--r-- | contrib/llvm-project/lldb/source/Target/TraceExporter.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/contrib/llvm-project/lldb/source/Target/TraceExporter.cpp b/contrib/llvm-project/lldb/source/Target/TraceExporter.cpp index 1a6571dba4a0..8c925aa495b0 100644 --- a/contrib/llvm-project/lldb/source/Target/TraceExporter.cpp +++ b/contrib/llvm-project/lldb/source/Target/TraceExporter.cpp @@ -22,11 +22,10 @@ static Error createInvalidPlugInError(StringRef plugin_name) { } Expected<lldb::TraceExporterUP> -TraceExporter::FindPlugin(llvm::StringRef plugin_name) { - ConstString name(plugin_name); +TraceExporter::FindPlugin(llvm::StringRef name) { if (auto create_callback = PluginManager::GetTraceExporterCreateCallback(name)) return create_callback(); - return createInvalidPlugInError(plugin_name); + return createInvalidPlugInError(name); } |