[clang] [Clang][CodeGen] Start migrating away from assuming the Default AS is 0 (PR #88182)

Eli Friedman via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 9 13:10:53 PDT 2024


================
@@ -4551,6 +4554,7 @@ llvm::Constant *CodeGenModule::GetOrCreateLLVMFunction(
 
   llvm::Function *F =
       llvm::Function::Create(FTy, llvm::Function::ExternalLinkage,
+                             getDataLayout().getProgramAddressSpace(),
----------------
efriedma-quic wrote:

This doesn't do anything?  Function::Create already puts functions in the program address-space by default.

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


More information about the cfe-commits mailing list