From b7a0d2abf664007a3237219dddc4b9cd29825042 Mon Sep 17 00:00:00 2001 From: Krzysztof Parzyszek Date: Fri, 23 Oct 2020 20:47:18 -0500 Subject: [PATCH] [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 477da09c1c65..9ff5a0421d51 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 rv(m.len);