You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by tq...@apache.org on 2020/10/24 01:47:32 UTC

[incubator-tvm] branch main updated: [Hexagon] Use nullptr instead of 0 in hexagon_device_sim.cc (#6718)

This is an automated email from the ASF dual-hosted git repository.

tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new 5d9d9d4  [Hexagon] Use nullptr instead of 0 in hexagon_device_sim.cc (#6718)
5d9d9d4 is described below

commit 5d9d9d464eabeca78b4abb57a81a2a49e46dc0c0
Author: Krzysztof Parzyszek <kp...@quicinc.com>
AuthorDate: Fri Oct 23 20:47:18 2020 -0500

    [Hexagon] Use nullptr instead of 0 in hexagon_device_sim.cc (#6718)
    
    Passing 0 produces compilation warnings.
---
 src/runtime/hexagon/sim/hexagon_device_sim.cc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/runtime/hexagon/sim/hexagon_device_sim.cc b/src/runtime/hexagon/sim/hexagon_device_sim.cc
index 477da09..9ff5a04 100644
--- a/src/runtime/hexagon/sim/hexagon_device_sim.cc
+++ b/src/runtime/hexagon/sim/hexagon_device_sim.cc
@@ -623,7 +623,7 @@ void HexagonSimulator::Free(void* ptr) {
   LOG(INFO) << "HexagonSimulator::Free(ptr=" << std::hex << ptr << std::dec << ')';
   if (task_queuing_) {
     Message mf = {kFlush, 0, 0};
-    SendMsg(mf, 0, true);
+    SendMsg(mf, nullptr, true);
   }
   Message m = {kFree, sizeof(MsgPointer), 0u};
   MsgPointer mp = {p2va(ptr)};
@@ -661,7 +661,7 @@ void HexagonSimulator::CopyDeviceToHost(void* host_dst, const void* src, unsigne
             << ", len=" << len << ')';
   if (task_queuing_) {
     Message mf = {kFlush, 0, 0};
-    SendMsg(mf, 0, true);
+    SendMsg(mf, nullptr, true);
   }
   CopyFromV(host_dst, p2va(src), len);
 }
@@ -739,7 +739,7 @@ void HexagonSimulator::Call(void* func, uint32_t* scalar, unsigned sc_num, uint3
 
   if (!task_queuing_) {
     Message mf = {kFlush, 0, 0};
-    SendMsg(mf, 0, true);
+    SendMsg(mf, nullptr, true);
   }
 
   std::vector<uint8_t> rv(m.len);