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

smanna12 via All-commits all-commits at lists.llvm.org
Tue May 30 18:49:25 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0c05128aeaf8611f835ee59f96467100e1bec6dc
      https://github.com/llvm/llvm-project/commit/0c05128aeaf8611f835ee59f96467100e1bec6dc
  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::getRVVEltType()

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

Reviewed By: erichkeane

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




More information about the All-commits mailing list