summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorsmanna12 <soumi.manna@intel.com>2024-05-02 06:22:20 -0700
committerGitHub <noreply@github.com>2024-05-02 08:22:20 -0500
commita2f97974e670379b28f7ad4701233fc162a46867 (patch)
treeb9ef65f88b5c7acf4113028abf66f854a2f3758c /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent7925525d330a46480b0c3b136e5f47948c5cb741 (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