[all-commits] [llvm/llvm-project] 0eacce: [Clang] Diagnose dangling references in std::vecto...

Haojian Wu via All-commits all-commits at lists.llvm.org
Mon Oct 14 12:09:22 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0eaccee1800331d6a4a3a58d52325279ca187066
      https://github.com/llvm/llvm-project/commit/0eaccee1800331d6a4a3a58d52325279ca187066
  Author: Haojian Wu <hokein.wu at gmail.com>
  Date:   2024-10-14 (Mon, 14 Oct 2024)

  Changed paths:
    M clang/lib/Sema/CheckExprLifetime.cpp
    M clang/test/Sema/warn-lifetime-analysis-nocfg.cpp

  Log Message:
  -----------
  [Clang] Diagnose dangling references in std::vector. (#111753)

This is a follow-up to https://github.com/llvm/llvm-project/pull/108344.

The original bailout check was overly strict, causing it to miss cases
like the vector(initializer_list, allocator) constructor. This patch
relaxes the check to address that issue.

Fix #111680



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