[Lldb-commits] [PATCH] D152962: [lldb] Fix SBPlatform after f4be9ff6458f

Alex Langford via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Jun 14 15:46:24 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rG623ad8a8ddc9: [lldb] Fix SBPlatform after f4be9ff6458f (authored by bulbazord).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D152962/new/

https://reviews.llvm.org/D152962

Files:
  lldb/source/API/SBPlatform.cpp


Index: lldb/source/API/SBPlatform.cpp
===================================================================
--- lldb/source/API/SBPlatform.cpp
+++ lldb/source/API/SBPlatform.cpp
@@ -488,7 +488,7 @@
 void SBPlatform::SetSDKRoot(const char *sysroot) {
   LLDB_INSTRUMENT_VA(this, sysroot);
   if (PlatformSP platform_sp = GetSP())
-    platform_sp->SetSDKRootDirectory(sysroot);
+    platform_sp->SetSDKRootDirectory(llvm::StringRef(sysroot).str());
 }
 
 SBError SBPlatform::Get(SBFileSpec &src, SBFileSpec &dst) {


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152962.531560.patch
Type: text/x-patch
Size: 512 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230614/9697eaea/attachment.bin>


More information about the lldb-commits mailing list