[clang] [clang] Don't emit the warn_dangling_lifetime_pointer diagnostic for the assignment case. (PR #97408)
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 2 06:13:21 PDT 2024
================
@@ -1023,7 +1023,7 @@ static void checkExprLifetimeImpl(Sema &SemaRef,
return false;
}
- if (IsGslPtrInitWithGslTempOwner && DiagLoc.isValid()) {
+ if (InitEntity && IsGslPtrInitWithGslTempOwner && DiagLoc.isValid()) {
----------------
hokein wrote:
Done.
https://github.com/llvm/llvm-project/pull/97408
More information about the cfe-commits
mailing list