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 recovery less
destructive, replace this with noexcept(false) and a constructed 'false'
expression.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
LGTM aside from a simplification. Can you mention the LLVM bug report in the commit log, as well (and close the bug)?
clang/lib/Sema/SemaExceptionSpec.cpp | ||
---|---|---|
90–92 | This can be simplified with APSInt::getUnsigned() unless you reallllly need it to be a one-bit integer. |
clang/lib/Sema/SemaExceptionSpec.cpp | ||
---|---|---|
90–92 | We normally DO create it as a 1 bit APSInt (the return type of the ConstantExpr), as discussed on IRC we should probably not differ from that. |
This can be simplified with APSInt::getUnsigned() unless you reallllly need it to be a one-bit integer.