diff options
| author | smanna12 <soumi.manna@intel.com> | 2024-05-02 06:22:20 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-02 08:22:20 -0500 |
| commit | a2f97974e670379b28f7ad4701233fc162a46867 (patch) | |
| tree | b9ef65f88b5c7acf4113028abf66f854a2f3758c /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | 7925525d330a46480b0c3b136e5f47948c5cb741 (diff) | |
[Clang] Prevent null pointer dereference in Sema::​CodeCompleteQualifiedId() (#90490)
The null pointer dereference issue seems happening with in the
expression NNS->getAsType().
Although dyn_cast_or_null<TemplateTypeParmType>() correctly handles null
pointers, it doesn’t prevent the subsequent dereferencing operation.
The fix ensures that NNS pointer is not null before calling the
getAsType() method, thus preventing potential runtime errors caused by
attempting to access a null pointer.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
