[all-commits] [llvm/llvm-project] 94d6dd: [AST] Fix an undefine behavior when creating an em...

Haojian Wu via All-commits all-commits at lists.llvm.org
Thu Apr 16 03:36:22 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 94d6dd01ba439ffcef7f7873622cf6ae99bcf5cb
      https://github.com/llvm/llvm-project/commit/94d6dd01ba439ffcef7f7873622cf6ae99bcf5cb
  Author: Haojian Wu <hokein.wu at gmail.com>
  Date:   2020-04-16 (Thu, 16 Apr 2020)

  Changed paths:
    M clang/include/clang/AST/Expr.h
    M clang/lib/AST/Expr.cpp
    A clang/test/PCH/cxx-recovery-expr.cpp

  Log Message:
  -----------
  [AST] Fix an undefine behavior when creating an empty recovery expr.

Summary:
We forgot to initialize the NumExpr member in one of the constructors,
which leads crashes in preamble serialization.

Reviewers: sammccall

Subscribers: cfe-commits

Tags: #clang

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




More information about the All-commits mailing list