[all-commits] [llvm/llvm-project] 2e8260: [lldb] Fix a bug in D96779 (shared lib directory l...

Pavel Labath via All-commits all-commits at lists.llvm.org
Tue Mar 9 06:21:56 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2e826088b9832067994e0348fc768b81632be687
      https://github.com/llvm/llvm-project/commit/2e826088b9832067994e0348fc768b81632be687
  Author: Pavel Labath <pavel at labath.sk>
  Date:   2021-03-09 (Tue, 09 Mar 2021)

  Changed paths:
    M lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp

  Log Message:
  -----------
  [lldb] Fix a bug in D96779 (shared lib directory logic)

This function would fail in debug builds, as the two usages of the
LLDB_PYTHON_RELATIVE_LIBDIR macro would expand to two distinct strings.
The path iterator macros don't support that.

Use a temporary variable to ensure everything points to a single string.




More information about the All-commits mailing list