Skip to content

Commit 3ffb1ac

Browse files
kazutakahirataPhilippRados
authored andcommitted
[memprof] Add const to isAllocationWithHotColdVariant (NFC) (llvm#114719)
1 parent 0a806fe commit 3ffb1ac

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)