[PATCH] D143300: [randstruct] Don't allow implicit forward decl to stop struct randomization

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Feb 3 15:45:42 PST 2023


MaskRay added inline comments.


================
Comment at: clang/test/Sema/init-randomized-struct-fwd-decl.c:23
+
+// CHECK-LABEL: t1
+// CHECK: getelementptr inbounds %struct.foo, ptr %0, i32 0, i32 2
----------------
`// CHECK-LABEL: define {{.*}} @t1(` is less likely to cause a conflict with other stuff happening to contain `t1` as a substring.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D143300/new/

https://reviews.llvm.org/D143300



More information about the cfe-commits mailing list