[all-commits] [llvm/llvm-project] cf79ab: [Clang] [NFC] Fix potential dereferencing of nullp...
smanna12 via All-commits
all-commits at lists.llvm.org
Wed Jul 31 15:36:42 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: cf79aba99db4909437b8977a59c51bc8899ddb9c
https://github.com/llvm/llvm-project/commit/cf79aba99db4909437b8977a59c51bc8899ddb9c
Author: smanna12 <soumi.manna at intel.com>
Date: 2024-07-31 (Wed, 31 Jul 2024)
Changed paths:
M clang/lib/AST/ASTContext.cpp
M clang/lib/CodeGen/CodeGenModule.cpp
Log Message:
-----------
[Clang] [NFC] Fix potential dereferencing of nullptr (#101405)
This patch replaces getAs with castAs and dyn_cast with cast to ensure
type safety and prevents potential null pointer dereferences. These
changes enforce compile-time checks for correct type casting in
ASTContext and CodeGenModule.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list