[clang] [Clang] Prevent null dereferences (PR #115502)
via cfe-commits
cfe-commits at lists.llvm.org
Thu Nov 21 06:13:11 PST 2024
================
@@ -2265,7 +2265,7 @@ class UnsafeBufferUsageReporter : public UnsafeBufferUsageHandler {
} else if (isa<MemberExpr>(Operation)) {
// note_unsafe_buffer_operation doesn't have this mode yet.
assert(!IsRelatedToDecl && "Not implemented yet!");
- auto ME = dyn_cast<MemberExpr>(Operation);
+ auto ME = cast<MemberExpr>(Operation);
----------------
smanna12 wrote:
Thank you @Fznamznon for catching and reviews. Fixed now.
https://github.com/llvm/llvm-project/pull/115502
More information about the cfe-commits
mailing list