[all-commits] [llvm/llvm-project] e782d9: [clang] Fix a nullptr-access crash in CheckTemplat...
Haojian Wu via All-commits
all-commits at lists.llvm.org
Mon Sep 19 10:21:40 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: e782d9a4a49c8aaf65bea4209cb6a8e7739526ac
https://github.com/llvm/llvm-project/commit/e782d9a4a49c8aaf65bea4209cb6a8e7739526ac
Author: Haojian Wu <hokein.wu at gmail.com>
Date: 2022-09-19 (Mon, 19 Sep 2022)
Changed paths:
M clang/lib/Sema/SemaTemplate.cpp
M clang/test/SemaTemplate/temp_arg_nontype_cxx1z.cpp
Log Message:
-----------
[clang] Fix a nullptr-access crash in CheckTemplateArgument.
It is possible that we can pass a null ParamType to
CheckNonTypeTemplateParameter -- the ParamType var can be reset to a null
type on Line 6940, and the followed bailout if is not entered.
Differential Revision: https://reviews.llvm.org/D134180
More information about the All-commits
mailing list