[clang] [Serialization] Clear moved-from deque to ensure valid state post-move (PR #97221)

2024-06-30 Thread via cfe-commits
https://github.com/smanna12 created https://github.com/llvm/llvm-project/pull/97221 This patch addresses a use-after-move issue, reported by static analyzer tool, by clearing the `PotentiallyInterestingDecls` deque after it has been moved to `MaybeInterestingDecls`. The fix ensures that the s

[clang] [Serialization] Clear moved-from deque to ensure valid state post-move (PR #97221)

2024-06-30 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-modules Author: None (smanna12) Changes This patch addresses a use-after-move issue, reported by static analyzer tool, by clearing the `PotentiallyInterestingDecls` deque after it has been moved to `MaybeInterestingDecls`. The fix ensures that t

[clang] [Serialization] Clear moved-from deque to ensure valid state post-move (PR #97221)

2024-06-30 Thread Chuanqi Xu via cfe-commits
https://github.com/ChuanqiXu9 approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/97221 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Serialization] Clear moved-from deque to ensure valid state post-move (PR #97221)

2024-07-01 Thread via cfe-commits
smanna12 wrote: Thank you @ChuanqiXu9 for reviews! https://github.com/llvm/llvm-project/pull/97221 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Serialization] Clear moved-from deque to ensure valid state post-move (PR #97221)

2024-07-01 Thread via cfe-commits
https://github.com/smanna12 closed https://github.com/llvm/llvm-project/pull/97221 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits