[all-commits] [llvm/llvm-project] b92255: DeferredDiagnosticsEmitter crashes

Geoff Levner via All-commits all-commits at lists.llvm.org
Thu Oct 8 08:45:38 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b9225543e844bee5091aa16108e0c54bd2abe485
      https://github.com/llvm/llvm-project/commit/b9225543e844bee5091aa16108e0c54bd2abe485
  Author: Geoff Levner <glevner at gmail.com>
  Date:   2020-10-08 (Thu, 08 Oct 2020)

  Changed paths:
    M clang/lib/Sema/UsedDeclVisitor.h

  Log Message:
  -----------
  DeferredDiagnosticsEmitter crashes

Patch VisitCXXDeleteExpr() in clang::UsedDeclVisitor to avoid it crashing
when the expression's destroyed type is null. According to the comments
in CXXDeleteExpr::getDestroyedType(), this can happen when the type to
delete is a dependent type.

Patch by Geoff Levner.

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




More information about the All-commits mailing list