[clang] [clang][CodeGen] Ensure consistent `mustprogress` attribute emission across all paths (PR #71452)
Eli Friedman via cfe-commits
cfe-commits at lists.llvm.org
Wed Nov 8 10:11:42 PST 2023
================
@@ -1482,6 +1477,11 @@ void CodeGenFunction::GenerateCode(GlobalDecl GD, llvm::Function *Fn,
} else
llvm_unreachable("no definition for emitted function");
+ // This is checked after emitting the function body so we know if there
+ // are any permitted infinite loops.
----------------
efriedma-quic wrote:
Is this comment actually accurate? I think the relevant code changed in 6c312954
https://github.com/llvm/llvm-project/pull/71452
More information about the cfe-commits
mailing list