Skip to content

Commit 77b7d9d

Browse files
[memprof] Add const to isAllocationWithHotColdVariant (NFC) (#114719)
1 parent 7f64e8f commit 77b7d9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Instrumentation/MemProfiler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -754,7 +754,7 @@ stackFrameIncludesInlinedCallStack(ArrayRef<Frame> ProfileCallStack,
754754
return InlCallStackIter == InlinedCallStack.end();
755755
}
756756

757-
static bool isAllocationWithHotColdVariant(Function *Callee,
757+
static bool isAllocationWithHotColdVariant(const Function *Callee,
758758
const TargetLibraryInfo &TLI) {
759759
if (!Callee)
760760
return false;

0 commit comments

Comments
 (0)