[lldb] fix dangling reference in `ClangHost.cpp`
authorpaperchalice <lgamma@163.com>
Tue, 6 Jun 2023 15:10:10 +0000 (08:10 -0700)
committerAdrian Prantl <aprantl@apple.com>
Tue, 6 Jun 2023 15:11:01 +0000 (08:11 -0700)
commit6c02e365711cab47ed9abe9f091c25651a3efd74
treec4fc18ddee6924e5596b84b04056b5d2b7c6596f
parent520a091217ac3c300cea7963038d9b266f42eb0c
[lldb] fix dangling reference in `ClangHost.cpp`

The lifetime of clang_resource_path should be same as
kResourceDirSuffixes, because kResourceDirSuffixes doesn't own
clang_resource_path.

Differential Revision: https://reviews.llvm.org/D152225
lldb/source/Plugins/ExpressionParser/Clang/ClangHost.cpp