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

Stephen Tozer via cfe-commits cfe-commits at lists.llvm.org
Wed May 28 02:00:25 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);
----------------
SLTozer wrote:

One last question, for this (and possibly other memsets) is it possible that the src argument is an instruction, and if so should it be get a rank 2 location?

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


More information about the cfe-commits mailing list