[clang] [clang] Only set the trailing bytes to zero when filling a partially … (PR #79502)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 31 13:53:41 PST 2024


================
@@ -945,48 +950,77 @@ static bool canEmitInitWithFewStoresAfterBZero(llvm::Constant *Init,
 
 /// For inits that canEmitInitWithFewStoresAfterBZero returned true for, emit
 /// the scalar stores that would be required.
-static void emitStoresForInitAfterBZero(CodeGenModule &CGM,
-                                        llvm::Constant *Init, Address Loc,
-                                        bool isVolatile, CGBuilderTy &Builder,
-                                        bool IsAutoInit) {
+static size_t emitStoresForInitAfterBZero(CodeGenModule &CGM,
----------------
efriedma-quic wrote:

Use uint64_t for struct/array offsets.

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


More information about the cfe-commits mailing list