[Lldb-commits] [PATCH] D152225: [lldb] fix dangling reference in `ClangHost.cpp`
Adrian Prantl via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Tue Jun 6 08:11:45 PDT 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rG6c02e365711c: [lldb] fix dangling reference in `ClangHost.cpp` (authored by paperchalice, committed by aprantl).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152225/new/
https://reviews.llvm.org/D152225
Files:
lldb/source/Plugins/ExpressionParser/Clang/ClangHost.cpp
Index: lldb/source/Plugins/ExpressionParser/Clang/ClangHost.cpp
===================================================================
--- lldb/source/Plugins/ExpressionParser/Clang/ClangHost.cpp
+++ lldb/source/Plugins/ExpressionParser/Clang/ClangHost.cpp
@@ -52,7 +52,7 @@
Log *log = GetLog(LLDBLog::Host);
std::string raw_path = lldb_shlib_spec.GetPath();
llvm::StringRef parent_dir = llvm::sys::path::parent_path(raw_path);
- const std::string clang_resource_path =
+ static const std::string clang_resource_path =
clang::driver::Driver::GetResourcesPath("bin/lldb", CLANG_RESOURCE_DIR);
static const llvm::StringRef kResourceDirSuffixes[] = {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D152225.528870.patch
Type: text/x-patch
Size: 668 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20230606/3d5d874f/attachment.bin>
More information about the lldb-commits
mailing list