[clang] [Clang] Implement P2809: Trivial infinite loops are not Undefined Behavior (PR #90066)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 25 07:49:11 PDT 2024
================
@@ -908,6 +908,73 @@ void CodeGenFunction::EmitIfStmt(const IfStmt &S) {
incrementProfileCounter(&S);
}
+bool CodeGenFunction::checkIfLoopMustProgress(const Expr *ControllingExpression,
+ bool IsTrivialCXXLoop) {
+ if (CGM.getCodeGenOpts().getFiniteLoops() ==
----------------
erichkeane wrote:
Hrm... I see this is exsting code, but this confuses me/is reverse from what I thought.
https://github.com/llvm/llvm-project/pull/90066
More information about the cfe-commits
mailing list