[all-commits] [llvm/llvm-project] 6b5783: [clang] Fix false positive regression for lifetime...
Haojian Wu via All-commits
all-commits at lists.llvm.org
Tue Feb 18 15:21:07 PST 2025
Branch: refs/heads/release/20.x
Home: https://github.com/llvm/llvm-project
Commit: 6b57839efb20fdbd43935b8fdd30665d0da6bf29
https://github.com/llvm/llvm-project/commit/6b57839efb20fdbd43935b8fdd30665d0da6bf29
Author: Haojian Wu <hokein.wu at gmail.com>
Date: 2025-02-18 (Tue, 18 Feb 2025)
Changed paths:
M clang/lib/Sema/CheckExprLifetime.cpp
M clang/test/Sema/Inputs/lifetime-analysis.h
M clang/test/Sema/warn-lifetime-analysis-nocfg.cpp
Log Message:
-----------
[clang] Fix false positive regression for lifetime analysis warning. (#127460)
This fixes a false positive caused by #114044.
For `GSLPointer*` types, it's less clear whether the lifetime issue is
about the GSLPointer object itself or the owner it points to. To avoid
false positives, we take a conservative approach in our heuristic.
Fixes #127195
(This will be backported to release 20).
(cherry picked from commit 9c49b188b8e1434eb774ee8422124ad3e8870dce)
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list