Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NFC][CLANG] Fix nullptr dereference issue in DeduceTemplateArguments…
…ByTypeMatch() DeduceTemplateArgumentsByTypeMatch() returns null value which is dereferenced without checking since getAsIncompleteArrayType() returns nullptr and we are dereferencing null pointer value for S.Context->getAsIncompleteArrayType(P) when calling getElementType(). This patch adds an assert. Reviewed By: erichkeane Differential Revision: https://reviews.llvm.org/D151529
- Loading branch information