Skip to content

Commit

Permalink
[Hexagon] Use nullptr instead of 0 in hexagon_device_sim.cc (apache#6718
Browse files Browse the repository at this point in the history
)

Passing 0 produces compilation warnings.
  • Loading branch information
Krzysztof Parzyszek authored and Trevor Morris committed Dec 4, 2020
1 parent a22e84e commit 323ecd3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/runtime/hexagon/sim/hexagon_device_sim.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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)};
Expand Down Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 323ecd3

Please sign in to comment.