[clang] [CIR] Upstream support for range-based for loops (PR #138176)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Thu May 1 11:50:12 PDT 2025
================
@@ -190,6 +190,117 @@ void l3() {
// OGCG: store i32 0, ptr %[[I]], align 4
// OGCG: br label %[[FOR_COND]]
+void l4() {
+ int a[10];
+ for (int n : a)
----------------
erichkeane wrote:
Can we do a test with a type with `begin` and `end` as well? Or cant we support general iterators yet?
https://github.com/llvm/llvm-project/pull/138176
More information about the cfe-commits
mailing list