[all-commits] [llvm/llvm-project] 826599: [NFC][CLANG] Fix Static Code Analyzer Concerns wit...

smanna12 via All-commits all-commits at lists.llvm.org
Fri Jun 2 13:48:11 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 82659941ccb88605ae4288f7506ef11e5fe3fc17
  Author: Manna, Soumi <soumi.manna at intel.com>
  Date:   2023-06-02 (Fri, 02 Jun 2023)

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

  Log Message:
  [NFC][CLANG] Fix Static Code Analyzer Concerns with dereference null return value in applyObjCTypeArgs()

This patch uses castAs instead of getAs to resolve dereference issue with nullptr boundObjC when calling
canAssignObjCInterfaces() or isObjCIdType() in applyObjCTypeArgs() since getAs returns nullptr.

Reviewed By: erichkeane

Differential Revision: https://reviews.llvm.org/D151964

More information about the All-commits mailing list