[Lldb-commits] [lldb] 5f02679 - [lldb][NFC] Remove a std::string->C string->StringRef conversion in ClangUserExpression
Raphael Isemann via lldb-commits
lldb-commits at lists.llvm.org
Fri May 29 02:19:55 PDT 2020
Author: Raphael Isemann
Date: 2020-05-29T11:19:33+02:00
New Revision: 5f0267984792429d7b9ac574c17566b98527576e
URL: https://github.com/llvm/llvm-project/commit/5f0267984792429d7b9ac574c17566b98527576e
DIFF: https://github.com/llvm/llvm-project/commit/5f0267984792429d7b9ac574c17566b98527576e.diff
LOG: [lldb][NFC] Remove a std::string->C string->StringRef conversion in ClangUserExpression
Added:
Modified:
lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp
Removed:
################################################################################
diff --git a/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp b/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp
index d649f226b6b8..f01357f10115 100644
--- a/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp
+++ b/lldb/source/Plugins/ExpressionParser/Clang/ClangUserExpression.cpp
@@ -420,7 +420,7 @@ void ClangUserExpression::CreateSourceCode(
m_transformed_text = m_expr_text;
} else {
m_source_code.reset(ClangExpressionSourceCode::CreateWrapped(
- m_filename, prefix.c_str(), m_expr_text.c_str()));
+ m_filename, prefix, m_expr_text));
if (!m_source_code->GetText(m_transformed_text, m_expr_lang,
m_in_static_method, exe_ctx, !m_ctx_obj,
More information about the lldb-commits
mailing list