[clang] Rewrite offsetof with __builtin_offsetof with -fms-kernel (PR #193804)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 27 09:57:50 PDT 2026
================
@@ -0,0 +1,114 @@
+// This one of two tests which failed when LLVM test suite
+// Replacing offsetof with __builtin_offsetof slightly affects
+// warning messages. Compare with Sema/struct-decl.c
----------------
eleviant wrote:
With approach suggested by @AaronBallman (PseudoObjectExpr) compiler warnings stay the same, so both tests are no longer needed
https://github.com/llvm/llvm-project/pull/193804
More information about the cfe-commits
mailing list