[all-commits] [llvm/llvm-project] 71f629: Initialize member variable; NFC (#135167)

Aaron Ballman via All-commits all-commits at lists.llvm.org
Thu Apr 10 05:10:38 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 71f629fc2a93e41577c09bdd782b2ba524ed5fea
      https://github.com/llvm/llvm-project/commit/71f629fc2a93e41577c09bdd782b2ba524ed5fea
  Author: Aaron Ballman <aaron at aaronballman.com>
  Date:   2025-04-10 (Thu, 10 Apr 2025)

  Changed paths:
    M clang/lib/StaticAnalyzer/Checkers/WebKit/RetainPtrCtorAdoptChecker.cpp

  Log Message:
  -----------
  Initialize member variable; NFC (#135167)

This was found via a Coverity static analysis pass. There's no
indication this was being used incorrectly in practice, but there are
public interfaces which require `BR` to be non-null and valid, and `BR`
was not being initialized by the constructor.

This adds an in-class initializer for `BR` and some asserts, to be safe.



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