[PATCH] D153296: [AST] Stop evaluate constant expression if the condition expression which in switch statement contains errors
Shafik Yaghmour via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 5 10:17:15 PDT 2023
shafik added inline comments.
================
Comment at: clang/lib/AST/ExprConstant.cpp:5019
if (SS->getCond()->isValueDependent()) {
if (!EvaluateDependentExpr(SS->getCond(), Info))
return ESR_Failed;
----------------
Please don't forget to remove this `if` and make the return unconditional as reinforced by @hokein comment above.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D153296/new/
https://reviews.llvm.org/D153296
More information about the cfe-commits
mailing list