[clang] [llvm] [WIP] Expand variadic functions in IR (PR #89007)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 17 03:08:18 PDT 2024
================
@@ -154,11 +154,20 @@ llvm::Value *CodeGen::emitRoundPointerUpToAlignment(CodeGenFunction &CGF,
llvm::Value *Ptr,
CharUnits Align) {
// OverflowArgArea = (OverflowArgArea + Align - 1) & -Align;
+ Ptr = CGF.Builder.CreateAddrSpaceCast(Ptr, CGF.AllocaInt8PtrTy,
+ Ptr->getName() + ".addrcast");
----------------
arsenm wrote:
This isn't the right place for it, I would expect this function to preserve whatever address space was passed in
https://github.com/llvm/llvm-project/pull/89007
More information about the llvm-commits
mailing list