[clang] [Clang] Prevent null dereferences (PR #115502)

2024-11-21 Thread via cfe-commits
@@ -2265,7 +2265,7 @@ class UnsafeBufferUsageReporter : public UnsafeBufferUsageHandler { } else if (isa(Operation)) { // note_unsafe_buffer_operation doesn't have this mode yet. assert(!IsRelatedToDecl && "Not implemented yet!"); -auto ME = dyn_c

[clang] [Clang] Prevent null dereferences (PR #115502)

2024-11-21 Thread via cfe-commits
https://github.com/smanna12 closed https://github.com/llvm/llvm-project/pull/115502 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Prevent null dereferences (PR #115502)

2024-11-21 Thread via cfe-commits
https://github.com/smanna12 updated https://github.com/llvm/llvm-project/pull/115502 >From d922aea02da8ddb0fe27ed21e1fe94bcb7e5d061 Mon Sep 17 00:00:00 2001 From: "Manna, Soumi" Date: Fri, 8 Nov 2024 07:40:37 -0800 Subject: [PATCH 1/2] [Clang] Prevent null dereference --- clang/lib/CodeGen/CG

[clang] [Clang] Prevent null dereferences (PR #115502)

2024-11-08 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon approved this pull request. LG https://github.com/llvm/llvm-project/pull/115502 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Prevent null dereferences (PR #115502)

2024-11-08 Thread Mariya Podchishchaeva via cfe-commits
@@ -2265,7 +2265,7 @@ class UnsafeBufferUsageReporter : public UnsafeBufferUsageHandler { } else if (isa(Operation)) { // note_unsafe_buffer_operation doesn't have this mode yet. assert(!IsRelatedToDecl && "Not implemented yet!"); -auto ME = dyn_c

[clang] [Clang] Prevent null dereferences (PR #115502)

2024-11-08 Thread Mariya Podchishchaeva via cfe-commits
https://github.com/Fznamznon edited https://github.com/llvm/llvm-project/pull/115502 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [Clang] Prevent null dereferences (PR #115502)

2024-11-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen Author: None (smanna12) Changes This commit addresses several Static Analyzer issues related to potential null dereference by replacing dyn_cast<> with cast<> and getAs<> with castAs<> in various parts of the codes. The cast function as

[clang] [Clang] Prevent null dereferences (PR #115502)

2024-11-08 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (smanna12) Changes This commit addresses several Static Analyzer issues related to potential null dereference by replacing dyn_cast<> with cast<> and getAs<> with castAs<> in various parts of the codes. The cast function asserts th

[clang] [Clang] Prevent null dereferences (PR #115502)

2024-11-08 Thread via cfe-commits
https://github.com/smanna12 created https://github.com/llvm/llvm-project/pull/115502 This commit addresses several Static Analyzer issues related to potential null dereference by replacing dyn_cast<> with cast<> and getAs<> with castAs<> in various parts of the codes. The cast function asser