[llvm] [llvm][opt][Transforms] Replacement `calloc` should match replaced `malloc` (PR #110524)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 30 09:07:09 PDT 2024
================
@@ -251,7 +251,7 @@ namespace llvm {
/// Emit a call to the calloc function.
Value *emitCalloc(Value *Num, Value *Size, IRBuilderBase &B,
- const TargetLibraryInfo &TLI);
+ const TargetLibraryInfo &TLI, unsigned AddrSpace = 0);
----------------
nikic wrote:
To prevent mistakes, can we make this a required parameter?
https://github.com/llvm/llvm-project/pull/110524
More information about the llvm-commits
mailing list