HomePhabricator

[Concepts] Add null check for TemplateTypeParmType::getDecl() in…

Authored by saar.raz on Mar 6 2020, 8:45 AM.

Description

[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.

(cherry picked from commit 865456d589e093582acaafd17d58ad1c0cce66af)

Details

Committed
saar.razMar 6 2020, 9:34 AM
Parents
rGedcd83a669b6: [mlir] NFC: Rename index_t to index_type
Branches
Unknown
Tags
Unknown