[PATCH] D79473: [clang] Fix a crash on invalid auto.

2020-05-06 Thread Haojian Wu via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGc6e1fd70fb24: [clang] Fix a crash on invalid auto. (authored by hokein). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D79473/new/ https://reviews.llvm.org/D

[PATCH] D79473: [clang] Fix a crash on invalid auto.

2020-05-06 Thread Haojian Wu via Phabricator via cfe-commits
hokein created this revision. hokein added a reviewer: sammccall. Herald added a project: clang. The crash is triggered on accessing a null InitExpr. For group declaration, e.g. `auto c = a, &d = {a};`, what's happening: 1. each VarDecl is built separately during the parsing stage. 2. perform th