[Lldb-commits] [lldb] [lldb] Tweak check for CommandLineTools in ParseXcodeSDK (PR #154574)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Wed Aug 20 14:46:23 PDT 2025


================
@@ -998,12 +999,12 @@ XcodeSDK SymbolFileDWARF::ParseXcodeSDK(CompileUnit &comp_unit) {
   const char *sdk = cu_die.GetAttributeValueAsString(DW_AT_APPLE_sdk, nullptr);
   if (!sdk)
     return {};
-  std::string sysroot =
+  llvm::StringRef sysroot =
----------------
Michael137 wrote:

Now that this is a `StringRef` we don't need the move down on line 1021. Though I'd double-check that the lifetimes

https://github.com/llvm/llvm-project/pull/154574


More information about the lldb-commits mailing list