[llvm-branch-commits] [llvm] d2b71ea - [ORC] Cast to const void* to silence a GCC warning. NFC.

Martin Storsjö via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Nov 25 02:17:16 PST 2020


Author: Martin Storsjö
Date: 2020-11-25T12:10:53+02:00
New Revision: d2b71ea03d9c250453a90ad01ea1a4f8b0566b5d

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

LOG: [ORC] Cast to const void* to silence a GCC warning. NFC.

Added: 
    

Modified: 
    llvm/include/llvm/ExecutionEngine/Orc/OrcRPCTargetProcessControl.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/ExecutionEngine/Orc/OrcRPCTargetProcessControl.h b/llvm/include/llvm/ExecutionEngine/Orc/OrcRPCTargetProcessControl.h
index b498661021ae..0bc209120ce7 100644
--- a/llvm/include/llvm/ExecutionEngine/Orc/OrcRPCTargetProcessControl.h
+++ b/llvm/include/llvm/ExecutionEngine/Orc/OrcRPCTargetProcessControl.h
@@ -94,7 +94,7 @@ class OrcRPCTPCJITLinkMemoryManager : public jitlink::JITLinkMemoryManager {
                  << " bytes to " << ((Prot & orcrpctpc::WPF_Read) ? 'R' : '-')
                  << ((Prot & orcrpctpc::WPF_Write) ? 'W' : '-')
                  << ((Prot & orcrpctpc::WPF_Exec) ? 'X' : '-')
-                 << " segment: local " << (void *)B.Buffer.data()
+                 << " segment: local " << (const void *)B.Buffer.data()
                  << " -> target " << formatv("{0:x16}", B.Address) << "\n";
         }
       });


        


More information about the llvm-branch-commits mailing list