aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/API/SBDebugger.cpp
diff options
context:
space:
mode:
authorMed Ismail Bennani <medismail.bennani@gmail.com>2023-01-13 08:51:03 -0800
committerMed Ismail Bennani <medismail.bennani@gmail.com>2023-01-13 09:13:03 -0800
commitd667840465b0ea0dbd39dcbd56788e73698dc853 (patch)
treeeb1709560c2e56e8aac34601cde3c501bc0a0447 /lldb/source/API/SBDebugger.cpp
parenta9a6f977bb429917f43f5511564bb8d2f8c9300f (diff)
downloadllvm-d667840465b0ea0dbd39dcbd56788e73698dc853.zip
llvm-d667840465b0ea0dbd39dcbd56788e73698dc853.tar.gz
llvm-d667840465b0ea0dbd39dcbd56788e73698dc853.tar.bz2
Revert "[lldb] Add Debugger & ScriptedMetadata reference to Platform::CreateInstance"
This reverts commit 2d53527e9c64c70c24e1abba74fa0a8c8b3392b1.
Diffstat (limited to 'lldb/source/API/SBDebugger.cpp')
-rw-r--r--lldb/source/API/SBDebugger.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/lldb/source/API/SBDebugger.cpp b/lldb/source/API/SBDebugger.cpp
index 743e928..851c80a 100644
--- a/lldb/source/API/SBDebugger.cpp
+++ b/lldb/source/API/SBDebugger.cpp
@@ -1498,8 +1498,7 @@ SBError SBDebugger::SetCurrentPlatform(const char *platform_name_cstr) {
if (m_opaque_sp) {
if (platform_name_cstr && platform_name_cstr[0]) {
PlatformList &platforms = m_opaque_sp->GetPlatformList();
- if (PlatformSP platform_sp = platforms.GetOrCreate(
- platform_name_cstr, /*metadata = */ nullptr))
+ if (PlatformSP platform_sp = platforms.GetOrCreate(platform_name_cstr))
platforms.SetSelectedPlatform(platform_sp);
else
sb_error.ref().SetErrorString("platform not found");