[all-commits] [llvm/llvm-project] 71059f: [AST] Produce ReturnStmt containing RecoveryExpr w...
Sam McCall via All-commits
all-commits at lists.llvm.org
Tue Jan 4 08:08:28 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 71059f26d31398d109be057e35bb8c5960d8aaf6
https://github.com/llvm/llvm-project/commit/71059f26d31398d109be057e35bb8c5960d8aaf6
Author: Sam McCall <sam.mccall at gmail.com>
Date: 2022-01-04 (Tue, 04 Jan 2022)
Changed paths:
M clang/include/clang/Sema/Sema.h
M clang/lib/Sema/SemaStmt.cpp
M clang/test/AST/ast-dump-recovery.cpp
M clang/test/SemaCXX/constant-expression-cxx11.cpp
M clang/test/SemaCXX/constant-expression-cxx14.cpp
M clang/test/SemaCXX/constexpr-function-recovery-crash.cpp
Log Message:
-----------
[AST] Produce ReturnStmt containing RecoveryExpr when type is wrong
Previously we just drop the ReturnStmt and its argument from the AST,
which blocks analysis of broken code.
Fixes https://github.com/llvm/llvm-project/issues/39944
Differential Revision: https://reviews.llvm.org/D116414
More information about the All-commits
mailing list