[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
================
@@ -2291,13 +2331,22 @@ CodeGenFunction::EmitNullInitialization(Address DestPtr, QualType Ty) {
// Get and call the appropriate llvm.memcpy overload.
Builder.CreateMemCpy(DestPtr, SrcPtr, SizeVal, false);
- return;
+ } else {
+ // Otherwise, just memset the whole thing to zero. This is legal
----------------
ojhunt wrote:
one statement so no braces.
I kid :D that would be horrific :D
https://github.com/llvm/llvm-project/pull/172119
More information about the llvm-branch-commits
mailing list