aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorManna, Soumi <soumi.manna@intel.com>2023-05-30 18:58:44 -0700
committerManna, Soumi <soumi.manna@intel.com>2023-05-30 19:02:40 -0700
commitcf236a037fd846d12131809ed07766fceec65fdc (patch)
tree59c21a31a4ef0bddb9c20d67efe5b88e80149d51 /clang/lib/Frontend/CompilerInvocation.cpp
parent62307f6d4e449e66a662e4ed79547e616a6f41ca (diff)
downloadllvm-cf236a037fd846d12131809ed07766fceec65fdc.zip
llvm-cf236a037fd846d12131809ed07766fceec65fdc.tar.gz
llvm-cf236a037fd846d12131809ed07766fceec65fdc.tar.bz2
[NFC][CLANG] Fix nullptr dereference issue in DeduceTemplateArgumentsByTypeMatch()
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
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions