[all-commits] [llvm/llvm-project] c2888c: [NFC] Fix potential dereferencing of null return v...

schittir via All-commits all-commits at lists.llvm.org
Fri Jun 16 20:31:54 PDT 2023


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

  Changed paths:
    M clang/lib/AST/ASTContext.cpp
    M clang/lib/Frontend/FrontendActions.cpp
    M clang/lib/Sema/SemaType.cpp
    M clang/lib/StaticAnalyzer/Checkers/CheckObjCDealloc.cpp
    M clang/lib/StaticAnalyzer/Checkers/PthreadLockChecker.cpp

  Log Message:
  -----------
  [NFC] Fix potential dereferencing of null return value.

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




More information about the All-commits mailing list