Commit 66ad47d6 authored by Diana Chen's avatar Diana Chen Committed by gbsbuild

Correctly initialize SendDescArg in BinaryEncodingIGA

Change-Id: Ic49b6a796cf9689b860a51c5724fba761672a5ba
parent 3475624d
......@@ -778,6 +778,7 @@ void BinaryEncodingIGA::DoAll()
SendDescArg BinaryEncodingIGA::getIGASendDescArg(G4_INST* sendInst) const
{
SendDescArg desc;
desc.init();
assert(sendInst->isSend() && "expect send inst");
G4_Operand* msgDesc = sendInst->isSplitSend() ? sendInst->getSrc(2) : sendInst->getSrc(1);
if (msgDesc->isImm())
......@@ -800,6 +801,7 @@ SendDescArg BinaryEncodingIGA::getIGASendDescArg(G4_INST* sendInst) const
iga::SendDescArg BinaryEncodingIGA::getIGASendExDescArg(G4_INST* sendInst) const
{
iga::SendDescArg desc;
desc.init();
assert(sendInst->isSend() && "expect send inst");
if (sendInst->isSplitSend())
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment