[clang] [llvm] [WIP] Expand variadic functions in IR (PR #89007)
Eli Friedman via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 16 17:54:32 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");
----------------
efriedma-quic wrote:
I can sort of guess why you're doing this, but probably you want to rename the method so it's clear why it's specialized this way.
https://github.com/llvm/llvm-project/pull/89007
More information about the cfe-commits
mailing list