[llvm] 77b7d9d - [memprof] Add const to isAllocationWithHotColdVariant (NFC) (#114719)

via llvm-commits llvm-commits at lists.llvm.org
Sun Nov 3 17:59:17 PST 2024


Author: Kazu Hirata
Date: 2024-11-03T17:59:13-08:00
New Revision: 77b7d9de832cf16c88d2b7102625df8fd1a40635

URL: https://github.com/llvm/llvm-project/commit/77b7d9de832cf16c88d2b7102625df8fd1a40635
DIFF: https://github.com/llvm/llvm-project/commit/77b7d9de832cf16c88d2b7102625df8fd1a40635.diff

LOG: [memprof] Add const to isAllocationWithHotColdVariant (NFC) (#114719)

Added: 
    

Modified: 
    llvm/lib/Transforms/Instrumentation/MemProfiler.cpp

Removed: 
    


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


        


More information about the llvm-commits mailing list