[all-commits] [llvm/llvm-project] 962ded: [NFC][clang] Fix static analyzer concerns

Mariya Podchishchaeva via All-commits all-commits at lists.llvm.org
Thu Aug 3 01:53:08 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 962deded6c30193175b4d96d6397e29bf6c238e9
      https://github.com/llvm/llvm-project/commit/962deded6c30193175b4d96d6397e29bf6c238e9
  Author: Podchishchaeva, Mariya <mariya.podchishchaeva at intel.com>
  Date:   2023-08-03 (Thu, 03 Aug 2023)

  Changed paths:
    M clang/lib/Sema/IdentifierResolver.cpp

  Log Message:
  -----------
  [NFC][clang] Fix static analyzer concerns

IdDeclInfoMap frees resources in the destructor but doesn't
have user-written copy c'tor or assignment operator, so copying it using
default ones can cause double free.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D156904




More information about the All-commits mailing list