[all-commits] [llvm/llvm-project] 07c112: [lldb] Fix bug in fallback logic for finding the r...

Jonas Devlieghere via All-commits all-commits at lists.llvm.org
Fri Oct 2 09:56:21 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 07c112574a324318a02ef29901a0d5aa1fd95144
      https://github.com/llvm/llvm-project/commit/07c112574a324318a02ef29901a0d5aa1fd95144
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2020-10-02 (Fri, 02 Oct 2020)

  Changed paths:
    M lldb/source/Plugins/ExpressionParser/Clang/ClangHost.cpp

  Log Message:
  -----------
  [lldb] Fix bug in fallback logic for finding the resource directory.

Both of the if-clauses modify the raw_path variable and only one of them
was resetting the variable for the fallback. Avoid future bugs like that
by always resetting the variable.

Differential revision: https://reviews.llvm.org/D88704




More information about the All-commits mailing list