[all-commits] [llvm/llvm-project] 97b8da: [AST] Fix a null initializer crash for InitListExpr

Haojian Wu via All-commits all-commits at lists.llvm.org
Tue Jun 2 01:58:21 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 97b8dabba5c5c1d799bd8b6856d4a81360361769
      https://github.com/llvm/llvm-project/commit/97b8dabba5c5c1d799bd8b6856d4a81360361769
  Author: Haojian Wu <hokein.wu at gmail.com>
  Date:   2020-06-02 (Tue, 02 Jun 2020)

  Changed paths:
    M clang/lib/Sema/SemaInit.cpp
    M clang/test/AST/ast-dump-recovery.cpp

  Log Message:
  -----------
  [AST] Fix a null initializer crash for InitListExpr

Summary:
The Initializer of a InitListExpr can be reset to null, which leads to
nullptr-acces crashes.

Reviewers: sammccall

Subscribers: cfe-commits

Tags: #clang

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




More information about the All-commits mailing list