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) {
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) {
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits