[llvm] Inline: Fix handling of byval using non-alloca addrspace (PR #97306)

David Chisnall via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 16 08:45:40 PDT 2024


================
@@ -1674,8 +1674,9 @@ static Value *HandleByValArgument(Type *ByValType, Value *Arg,
   if (ByValAlignment)
     Alignment = std::max(Alignment, *ByValAlignment);
 
-  AllocaInst *NewAlloca = new AllocaInst(ByValType, DL.getAllocaAddrSpace(),
----------------
davidchisnall wrote:

That would not break anything for CHERI, if it works for other use cases.  

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


More information about the llvm-commits mailing list