diff --git a/llvm/lib/Transforms/Instrumentation/MemProfiler.cpp b/llvm/lib/Transforms/Instrumentation/MemProfiler.cpp index 248d72ea2cca8..70bee30fd151f 100644 --- a/llvm/lib/Transforms/Instrumentation/MemProfiler.cpp +++ b/llvm/lib/Transforms/Instrumentation/MemProfiler.cpp @@ -754,7 +754,7 @@ stackFrameIncludesInlinedCallStack(ArrayRef ProfileCallStack, return InlCallStackIter == InlinedCallStack.end(); } -static bool isAllocationWithHotColdVariant(Function *Callee, +static bool isAllocationWithHotColdVariant(const Function *Callee, const TargetLibraryInfo &TLI) { if (!Callee) return false;