[llvm] SimplifyLibCalls: Use default globals address space when building new global strings. (PR #118729)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 5 00:46:33 PST 2024


================
@@ -247,7 +247,7 @@ namespace llvm {
 
   /// Emit a call to the malloc function.
   Value *emitMalloc(Value *Num, IRBuilderBase &B, const DataLayout &DL,
-                    const TargetLibraryInfo *TLI);
+                    const TargetLibraryInfo *TLI, unsigned AddrSpace);
----------------
nikic wrote:

I think it might be simpler overall if all of these directly passed a pointer type rather than only the address space?

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


More information about the llvm-commits mailing list