[all-commits] [llvm/llvm-project] 28ccd0: [AST][RecoveryExpr] Populate the dependence bits f...
Haojian Wu via All-commits
all-commits at lists.llvm.org
Mon Jun 8 06:31:43 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 28ccd09d700311f0d1ce3828a614aad231bdbb22
https://github.com/llvm/llvm-project/commit/28ccd09d700311f0d1ce3828a614aad231bdbb22
Author: Haojian Wu <hokein.wu at gmail.com>
Date: 2020-06-08 (Mon, 08 Jun 2020)
Changed paths:
M clang/lib/AST/ComputeDependence.cpp
M clang/test/SemaCXX/invalid-constructor-init.cpp
Log Message:
-----------
[AST][RecoveryExpr] Populate the dependence bits from CompoundStmt result expr to StmtExpr.
Summary:
We lost errorBit for StmtExpr if a recoveryExpr is the result
expr of a CompoundStmt, which will lead to crashes.
```
// `-StmtExpr
// `-CompoundStmt
// `-RecoveryExp
({ invalid(); });
```
Reviewers: sammccall
Subscribers: cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D81154
More information about the All-commits
mailing list