[clang] [NFC][Clang] Fix potential dereferencing of nullptr (PR #86759)

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

[clang] [NFC][Clang] Fix potential dereferencing of nullptr (PR #86759)

2024-03-27 Thread via cfe-commits
smanna12 wrote: Thank you @tahonermann for reviews! https://github.com/llvm/llvm-project/pull/86759 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][Clang] Fix potential dereferencing of nullptr (PR #86759)

2024-03-27 Thread Tom Honermann via cfe-commits
@@ -289,7 +289,7 @@ class ComplexExprEmitter const BinOpInfo ); QualType GetHigherPrecisionFPType(QualType ElementType) { -const auto *CurrentBT = dyn_cast(ElementType); +const auto *CurrentBT = cast(ElementType);

[clang] [NFC][Clang] Fix potential dereferencing of nullptr (PR #86759)

2024-03-27 Thread Tom Honermann via cfe-commits
@@ -2974,7 +2974,7 @@ void DeclareImplicitDeductionGuidesForTypeAlias( if (auto *FPrime = SemaRef.InstantiateFunctionDeclaration( F, TemplateArgListForBuildingFPrime, AliasTemplate->getLocation(),

[clang] [NFC][Clang] Fix potential dereferencing of nullptr (PR #86759)

2024-03-27 Thread Tom Honermann via cfe-commits
https://github.com/tahonermann edited https://github.com/llvm/llvm-project/pull/86759 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [NFC][Clang] Fix potential dereferencing of nullptr (PR #86759)

2024-03-27 Thread Tom Honermann via cfe-commits
https://github.com/tahonermann approved this pull request. Looks good, thanks @smanna12! https://github.com/llvm/llvm-project/pull/86759 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

[clang] [NFC][Clang] Fix potential dereferencing of nullptr (PR #86759)

2024-03-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-backend-powerpc Author: None (smanna12) Changes This patch replaces dyn_cast with cast to resolve potential static analyzer bugs for 1. Dereferencing a pointer issue with nullptr GVar when calling addAttribute() in

[clang] [NFC][Clang] Fix potential dereferencing of nullptr (PR #86759)

2024-03-26 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang-codegen @llvm/pr-subscribers-clang Author: None (smanna12) Changes This patch replaces dyn_cast with cast to resolve potential static analyzer bugs for 1. Dereferencing a pointer issue with nullptr GVar when calling addAttribute() in

[clang] [NFC][Clang] Fix potential dereferencing of nullptr (PR #86759)

2024-03-26 Thread via cfe-commits
https://github.com/smanna12 created https://github.com/llvm/llvm-project/pull/86759 This patch replaces dyn_cast<> with cast<> to resolve potential static analyzer bugs for 1. Dereferencing a pointer issue with nullptr GVar when calling addAttribute() in