[clang] [Clang] [Sema] Ensure noexcept(typeid(E)) checks if E throws when needed (PR #95846)
Timm Baeder via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 17 21:57:11 PDT 2024
================
@@ -1111,13 +1111,18 @@ static CanThrowResult canDynamicCastThrow(const CXXDynamicCastExpr *DC) {
}
static CanThrowResult canTypeidThrow(Sema &S, const CXXTypeidExpr *DC) {
- if (DC->isTypeOperand())
+ // Operand is not evaluated, cannot possibly throw
----------------
tbaederr wrote:
```suggestion
// Operand is not evaluated, cannot possibly throw.
```
https://github.com/llvm/llvm-project/pull/95846
More information about the cfe-commits
mailing list