================
@@ -5172,7 +5181,7 @@ template <class Emitter> bool
Compiler<Emitter>::visitIfStmt(const IfStmt *IS) {
return false;
if (const DeclStmt *CondDecl = IS->getConditionVariableDeclStmt())
- if (!visitDeclStmt(CondDecl))
+ if (!visitDeclStmt(CondDecl, /*EvaluateConditionDecl=*/false))
----------------
cor3ntin wrote:
I think it makes sense to default to false (ditto in other places)
https://github.com/llvm/llvm-project/pull/130228
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits