[llvm] 35f5cae - [NFC] Corrected data type (#84880)

via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 13 10:16:46 PDT 2024


Author: Chen Cheng
Date: 2024-03-13T10:16:42-07:00
New Revision: 35f5caea5115d7dabf0c1a92c8627069d6dbd556

URL: https://github.com/llvm/llvm-project/commit/35f5caea5115d7dabf0c1a92c8627069d6dbd556
DIFF: https://github.com/llvm/llvm-project/commit/35f5caea5115d7dabf0c1a92c8627069d6dbd556.diff

LOG: [NFC] Corrected data type (#84880)

On windows, "&Method.first" is of type "unsigned long long *", and a
type conversion error occurs.

Added: 
    

Modified: 
    llvm/lib/ExecutionEngine/Orc/TargetProcess/JITLoaderVTune.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/ExecutionEngine/Orc/TargetProcess/JITLoaderVTune.cpp b/llvm/lib/ExecutionEngine/Orc/TargetProcess/JITLoaderVTune.cpp
index d346214d3ae291..57ac991ee37f3d 100644
--- a/llvm/lib/ExecutionEngine/Orc/TargetProcess/JITLoaderVTune.cpp
+++ b/llvm/lib/ExecutionEngine/Orc/TargetProcess/JITLoaderVTune.cpp
@@ -87,7 +87,7 @@ static void registerJITLoaderVTuneUnregisterImpl(
   for (auto &Method : UM) {
     JITEventWrapper::Wrapper->iJIT_NotifyEvent(
         iJVM_EVENT_TYPE_METHOD_UNLOAD_START,
-        const_cast<unsigned long *>(&Method.first));
+        const_cast<uint64_t *>(&Method.first));
   }
 }
 


        


More information about the llvm-commits mailing list