[all-commits] [llvm/llvm-project] f64f76: [NFC][CLANG] Fix nullptr dereference issue in Type...

smanna12 via All-commits all-commits at lists.llvm.org
Tue May 30 08:01:30 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f64f760e2d20340ef7d1a95c8598a90e42ac31e7
      https://github.com/llvm/llvm-project/commit/f64f760e2d20340ef7d1a95c8598a90e42ac31e7
  Author: Manna, Soumi <soumi.manna at intel.com>
  Date:   2023-05-30 (Tue, 30 May 2023)

  Changed paths:
    M clang/lib/AST/Type.cpp

  Log Message:
  -----------
  [NFC][CLANG] Fix nullptr dereference issue in Type::getSveEltType()

This patch uses castAs instead of getAs which will assert if the type
 doesn't match in clang::Type::getSveEltType(clang::ASTContext const &)

Reviewed By: erichkeane

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




More information about the All-commits mailing list