[clang] [Clang] Handle structs with inner structs and no fields (PR #89126)

Bill Wendling via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 19 12:36:05 PDT 2024


================
@@ -0,0 +1,22 @@
+// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 4
+// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -O2 -Wno-missing-declarations -emit-llvm -o - %s | FileCheck %s
+
+struct foo {
+  struct bar {
+    int count;
+    int array[] __attribute__((counted_by(count)));
----------------
bwendling wrote:

I see what you mean. I'd like to leave it for a followup, since this change is meant to fix an ICE.

https://github.com/llvm/llvm-project/pull/89126


More information about the cfe-commits mailing list