[all-commits] [llvm/llvm-project] 28b753: [Clang][NFC] Add nullptr check in InitializationSe...

Shafik Yaghmour via All-commits all-commits at lists.llvm.org
Mon Jun 9 14:29:08 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 28b753b185511eaaf98c5dda39bf9e44fa134212
      https://github.com/llvm/llvm-project/commit/28b753b185511eaaf98c5dda39bf9e44fa134212
  Author: Shafik Yaghmour <shafik.yaghmour at intel.com>
  Date:   2025-06-09 (Mon, 09 Jun 2025)

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

  Log Message:
  -----------
  [Clang][NFC] Add nullptr check in InitializationSequence::InitializeFrom (#143067)

Static analysis flagged that Var could be nullptr but we were not
checking in the branch and unconditionally dereferences the pointer.

Note, code was added by 576161cb6069



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