[all-commits] [llvm/llvm-project] 865456: [Concepts] Add null check for TemplateTypeParmType...

Saar Raz via All-commits all-commits at lists.llvm.org
Fri Mar 6 09:33:19 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 865456d589e093582acaafd17d58ad1c0cce66af
      https://github.com/llvm/llvm-project/commit/865456d589e093582acaafd17d58ad1c0cce66af
  Author: Saar Raz <saar at raz.email>
  Date:   2020-03-06 (Fri, 06 Mar 2020)

  Changed paths:
    M clang/lib/Sema/SemaTemplateInstantiate.cpp
    M clang/test/SemaTemplate/instantiate-abbreviated-template.cpp

  Log Message:
  -----------
  [Concepts] Add null check for TemplateTypeParmType::getDecl() in GetContainedInventedTypeParmVisitor

GetContainedInventedTypeParmVisitor would not account for the case where TemplateTypeParmType::getDecl() is
nullptr, causing bug #45102.

Add the nullptr check.




More information about the All-commits mailing list