[PATCH] D72621: PR44514: Fix recovery from noexcept with non-convertible expressions

2020-01-13 Thread Erich Keane via Phabricator via cfe-commits
erichkeane marked an inline comment as done. erichkeane added inline comments. Comment at: clang/lib/Sema/SemaExceptionSpec.cpp:90-92 +llvm::APSInt Value{1}; +Value = 0; +return ConstantExpr::Create(Context, BoolExpr, APValue{Value}); aaron.ballman wr

[PATCH] D72621: PR44514: Fix recovery from noexcept with non-convertible expressions

2020-01-13 Thread Erich Keane via Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rGf0719bf2196c: PR44514: Fix recovery from noexcept with non-convertible expressions (authored by erichkeane). Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D72

[PATCH] D72621: PR44514: Fix recovery from noexcept with non-convertible expressions

2020-01-13 Thread Aaron Ballman via Phabricator via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM aside from a simplification. Can you mention the LLVM bug report in the commit log, as well (and close the bug)? Comment at: clang/lib/Sema/SemaExceptionS

[PATCH] D72621: PR44514: Fix recovery from noexcept with non-convertible expressions

2020-01-13 Thread Erich Keane via Phabricator via cfe-commits
erichkeane created this revision. erichkeane added a reviewer: aaron.ballman. Herald added a project: clang. We currently treat noexcept(not-convertible-to-bool) as 'none', which results in the typeloc info being a different size, and causing an assert later on in the process. In order to make re