[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
Mon Feb 6 10:19:17 PST 2023


MaskRay accepted this revision.
MaskRay added inline comments.
This revision is now accepted and ready to land.


================
Comment at: clang/test/CodeGen/init-randomized-struct-fwd-decl.c:23
+
+// CHECK-LABEL: define {{.*}}@t1
+// CHECK-NOT: getelementptr inbounds %struct.foo, ptr %3, i32 0, i32 0
----------------
`@t1(`

(This helps distinguish `@t10` from `@t1`, if we ever need `t10` :) )


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