[all-commits] [llvm/llvm-project] 28923d: [AST][RecoveryExpr] Fix a crash on a field decl wi...
Haojian Wu via All-commits
all-commits at lists.llvm.org
Tue Jun 16 03:12:42 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 28923dc2dda46610e5b6ee73bf046d2bb78a1a77
https://github.com/llvm/llvm-project/commit/28923dc2dda46610e5b6ee73bf046d2bb78a1a77
Author: Haojian Wu <hokein.wu at gmail.com>
Date: 2020-06-16 (Tue, 16 Jun 2020)
Changed paths:
M clang/lib/Sema/SemaDecl.cpp
M clang/test/Sema/invalid-member.cpp
Log Message:
-----------
[AST][RecoveryExpr] Fix a crash on a field decl with invalid type.
Summary:
The field decl (in the testcase) was still valid, which results in a
valid RecordDecl, it led to crash when performing struct layout,
and computing struct size etc.
Reviewers: sammccall
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D81913
More information about the All-commits
mailing list