aboutsummaryrefslogtreecommitdiff
path: root/llvm/utils/FileCheck/FileCheck.cpp
diff options
context:
space:
mode:
authorsmanna12 <soumi.manna@intel.com>2024-06-29 11:32:39 -0700
committerGitHub <noreply@github.com>2024-06-29 13:32:39 -0500
commitf7fec8c80a986e82ef174080a3e07703c7b2c3c6 (patch)
treef3edf47a733e4471fddeb48ceba915d2cac08cb3 /llvm/utils/FileCheck/FileCheck.cpp
parent1791b11b7d94d33a37897163702f5bfeb9a26f12 (diff)
downloadllvm-f7fec8c80a986e82ef174080a3e07703c7b2c3c6.zip
llvm-f7fec8c80a986e82ef174080a3e07703c7b2c3c6.tar.gz
llvm-f7fec8c80a986e82ef174080a3e07703c7b2c3c6.tar.bz2
[Clang] Prevent null pointer dereference in template deduction guide creation (#97097)
This patch addresses static analyzer concerns where `TSI` could be dereferenced after being assigned a null value from `SubstType` in `ConvertConstructorToDeductionGuideTransform()`. The fixes now check null value of `TSI` after the call to `SubstType` and return `nullptr` to prevent potential null pointer dereferences when calling getTypeLoc() or getType() and ensure safe execution.
Diffstat (limited to 'llvm/utils/FileCheck/FileCheck.cpp')
0 files changed, 0 insertions, 0 deletions