[clang] [clang] Refine the temporay object member access filtering for GSL pointer (PR #122088)
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 13 02:55:35 PST 2025
================
@@ -1103,6 +1094,8 @@ shouldLifetimeExtendThroughPath(const IndirectLocalPath &Path) {
for (auto Elem : Path) {
if (Elem.Kind == IndirectLocalPathEntry::DefaultInit)
return PathLifetimeKind::Extend;
+ if (Elem.Kind == IndirectLocalPathEntry::MemberExpr)
+ continue;
----------------
hokein wrote:
Done.
https://github.com/llvm/llvm-project/pull/122088
More information about the cfe-commits
mailing list