[clang] [KeyIntsr][Clang] Builtins alloca auto-init atom (PR #134651)

Orlando Cazalet-Hyams via cfe-commits cfe-commits at lists.llvm.org
Wed May 28 03:24:48 PDT 2025


================
@@ -4466,7 +4473,8 @@ RValue CodeGenFunction::EmitBuiltinExpr(const GlobalDecl GD, unsigned BuiltinID,
     Value *SizeVal = EmitScalarExpr(E->getArg(2));
     EmitNonNullArgCheck(Dest, E->getArg(0)->getType(),
                         E->getArg(0)->getExprLoc(), FD, 0);
-    Builder.CreateMemSet(Dest, ByteVal, SizeVal, false);
+    auto *I = Builder.CreateMemSet(Dest, ByteVal, SizeVal, false);
----------------
OCHyams wrote:

Fair point - done. The other memsets covered so far look like they all store constants.

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


More information about the cfe-commits mailing list