[lldb] Fix bug in fallback logic for finding the resource directory.
authorJonas Devlieghere <jonas@devlieghere.com>
Fri, 2 Oct 2020 16:53:30 +0000 (09:53 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Fri, 2 Oct 2020 16:56:01 +0000 (09:56 -0700)
commit07c112574a324318a02ef29901a0d5aa1fd95144
tree8189fa365979f36fb9bca56a9301c0c83f07e33c
parent0867a9e85ace8ed0b11f6a7fc4c9e4bb1606263b
[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
lldb/source/Plugins/ExpressionParser/Clang/ClangHost.cpp