[AST] Stop evaluate constant expression if the condition expression which in...
[AST] Stop evaluate constant expression if the condition expression which in switch statement contains errors This fix issue: https://github.com/llvm/llvm-project/issues/63453 ``` constexpr int foo(unsigned char c) { switch (f) { case 0: return 7; default: break; } return 0; } static_assert(foo('d')); ``` Reviewed By: aaron.ballman, erichkeane, hokein Differential Revision: https://reviews.llvm.org/D153296
parent
73d411d1
Please register or sign in to comment