diff options
author | smanna12 <soumi.manna@intel.com> | 2024-03-27 17:12:58 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-27 17:12:58 -0500 |
commit | 8a75faf4717b8258b59cf9fbb4cbd2f189114d3f (patch) | |
tree | ebdf844b39389db58bf34d0cfabcd690fd3f17e0 /clang/lib/CodeGen/CodeGenModule.cpp | |
parent | d5f06342a3007f414c783ba42cb49453a9cee835 (diff) | |
download | llvm-8a75faf4717b8258b59cf9fbb4cbd2f189114d3f.zip llvm-8a75faf4717b8258b59cf9fbb4cbd2f189114d3f.tar.gz llvm-8a75faf4717b8258b59cf9fbb4cbd2f189114d3f.tar.bz2 |
[NFC][CLANG] Fix null pointer dereferences (#86760)
This patch replaces getAs<> with castAs<> to resolve potential static
analyzer bugs for
1. Dereferencing Proto1->param_type_begin(), which is known to be
nullptr
2. Dereferencing Proto2->param_type_begin(), which is known to be
nullptr
3. Dereferencing a pointer issue with nullptr Proto1 when calling
param_type_end()
4. Dereferencing a pointer issue with nullptr Proto2 when calling
param_type_end()
in clang::Sema::getMoreSpecializedTemplate().
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions