diff options
author | Fangrui Song <i@maskray.me> | 2022-12-18 01:15:25 +0000 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2022-12-18 01:15:25 +0000 |
commit | fbaf48be0ff6fb24b9aa8fe9c2284fe88a8798dd (patch) | |
tree | 735c071463e87ff80c30d1bb2b4528fc8aa1a8a9 /lldb/source/Interpreter/ScriptInterpreter.cpp | |
parent | a3400191137e7c991b89ebe72211790dae1648a1 (diff) | |
download | llvm-fbaf48be0ff6fb24b9aa8fe9c2284fe88a8798dd.zip llvm-fbaf48be0ff6fb24b9aa8fe9c2284fe88a8798dd.tar.gz llvm-fbaf48be0ff6fb24b9aa8fe9c2284fe88a8798dd.tar.bz2 |
[lldb] Remove redundant .c_str() and .get() calls
Removing .c_str() has a semantics difference, but the use scenarios
likely do not matter as we don't have NUL in the strings.
Diffstat (limited to 'lldb/source/Interpreter/ScriptInterpreter.cpp')
-rw-r--r-- | lldb/source/Interpreter/ScriptInterpreter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/source/Interpreter/ScriptInterpreter.cpp b/lldb/source/Interpreter/ScriptInterpreter.cpp index 0820755..9572176 100644 --- a/lldb/source/Interpreter/ScriptInterpreter.cpp +++ b/lldb/source/Interpreter/ScriptInterpreter.cpp @@ -82,7 +82,7 @@ ScriptInterpreter::GetDataExtractorFromSBData(const lldb::SBData &data) const { Status ScriptInterpreter::GetStatusFromSBError(const lldb::SBError &error) const { if (error.m_opaque_up) - return *error.m_opaque_up.get(); + return *error.m_opaque_up; return Status(); } |