[all-commits] [llvm/llvm-project] d2fafa: [NFC] Fix potential dereferencing of nullptr.

schittir via All-commits all-commits at lists.llvm.org
Thu Jun 22 09:53:45 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d2fafa79ef08f9ef9cd0108a6caa7fc61a31bdeb
      https://github.com/llvm/llvm-project/commit/d2fafa79ef08f9ef9cd0108a6caa7fc61a31bdeb
  Author: Sindhu Chittireddy <sindhu.chittireddy at intel.com>
  Date:   2023-06-22 (Thu, 22 Jun 2023)

  Changed paths:
    M clang/lib/Sema/SemaExprObjC.cpp
    M clang/lib/Sema/SemaObjCProperty.cpp
    M clang/lib/Sema/SemaType.cpp

  Log Message:
  -----------
  [NFC] Fix potential dereferencing of nullptr.

Replace getAs with castAs and add assert if needed.
Differential revision: https://reviews.llvm.org/D153236




More information about the All-commits mailing list