[all-commits] [llvm/llvm-project] 37af81: [Clang][Sema] Add a nullptr check in template name...

Shafik Yaghmour via All-commits all-commits at lists.llvm.org
Wed Oct 8 13:57:37 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 37af81fbb54aed5a7433c8c48217b1d54384c3cf
      https://github.com/llvm/llvm-project/commit/37af81fbb54aed5a7433c8c48217b1d54384c3cf
  Author: Shafik Yaghmour <shafik.yaghmour at intel.com>
  Date:   2025-10-08 (Wed, 08 Oct 2025)

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

  Log Message:
  -----------
  [Clang][Sema] Add a nullptr check in template name (#162377)

Static analysis flagged that when calling ActOnTemplateName, `S` can be
a `nullptr`
and we call `isTemplateName` which unconditionally dereferences the `S`
argument at
some point. I added a `nullptr` check to assure we don't dereference `S`
in
`isTemplateName` if it is a `nullptr`.



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