[all-commits] [llvm/llvm-project] 02ce49: [NFC][CLANG] Fix bug with dereference null return ...

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


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

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

  Log Message:
  -----------
  [NFC][CLANG] Fix bug with dereference null return value in GetFunctionTypeForVTable()

This patch uses castAs instead of getAs which will assert if the type doesn't match in clang::CodeGen::CodeGenTypes::GetFunctionTypeForVTable(clang::GlobalDecl).

Reviewed By: erichkeane

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




More information about the All-commits mailing list