[llvm-branch-commits] [clang] [Clang] Add pointer field protection feature. (PR #172119)

Oliver Hunt via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Sat Dec 20 23:33:59 PST 2025


================
@@ -1060,7 +1074,8 @@ namespace {
       CXXConstructExpr *CE = dyn_cast<CXXConstructExpr>(MemberInit->getInit());
 
       // Bail out on non-memcpyable, not-trivially-copyable members.
-      if (!(CE && isMemcpyEquivalentSpecialMember(CE->getConstructor())) &&
+      if (!(CE &&
----------------
ojhunt wrote:

I really don't like this condition but I'm not really sure how to make it better - maybe break it up into a bunch of variables to make it easier to read? but they're only single use so ???

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


More information about the llvm-branch-commits mailing list