Files
clang-p2996/clang/test/SemaCXX/invalid-if-constexpr.cpp
Mariya Podchishchaeva 9d9046f06d [clang] Do not crash after suggesting typo correction to constexpr if condition
In some cases non-null non-constant yet valid expression may reach point where
`ConditionResult` is created. For example, typo correction mechanism can return
such expression, so double check before evaluating it.

Fixes https://github.com/llvm/llvm-project/issues/61885

Reviewed By: tbaeder, aaron.ballman

Differential Revision: https://reviews.llvm.org/D148206
2023-04-17 08:28:49 -04:00

654 B