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

smanna12 via All-commits all-commits at lists.llvm.org
Sun Jun 4 09:11:24 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c7550310738b27aec440e5d20cec7f0209d45721
      https://github.com/llvm/llvm-project/commit/c7550310738b27aec440e5d20cec7f0209d45721
  Author: Manna, Soumi <soumi.manna at intel.com>
  Date:   2023-06-04 (Sun, 04 Jun 2023)

  Changed paths:
    M clang/lib/CodeGen/CGDebugInfo.cpp

  Log Message:
  -----------
  [NFC][CLANG] Fix Static Code Analyzer Concerns

This patch uses castAs instead of getAs which will assert if the type doesn't match to resolve dereference issue with nullptr FPT when calling getThisType() in clang::CodeGen::CGDebugInfo::CreateType(clang::MemberPointerType const *, llvm::DIFile *).

Reviewed By: erichkeane

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




More information about the All-commits mailing list