File tree Expand file tree Collapse file tree 1 file changed +4
-21
lines changed Expand file tree Collapse file tree 1 file changed +4
-21
lines changed Original file line number Diff line number Diff line change @@ -139,29 +139,12 @@ int IR_Builder::translateVISARawSendsInst(
139
139
sendMsgDesc->setEOT ();
140
140
}
141
141
142
- int status = VISA_SUCCESS;
143
- std::stringstream ss;
144
-
145
- if (sendMsgDesc->MessageLength () != numSrc0)
146
- {
147
- ss << " \n Message length mismatch for raw sends\n " ;
148
- status = VISA_FAILURE;
149
- }
150
- if (!dstOpnd->isNullReg () && sendMsgDesc->ResponseLength () > numDst) {
151
- ss << " Response length mismatch for raw sends\n " ;
152
- status = VISA_FAILURE;
153
- }
154
- if (sendMsgDesc->extMessageLength () > numSrc1)
155
- {
156
- ss << " Extended message length mismatch for raw sends\n " ;
157
- status = VISA_FAILURE;
142
+ MUST_BE_TRUE (sendMsgDesc->MessageLength () == numSrc0, " message length mismatch for raw sends" );
143
+ if (!dstOpnd->isNullReg ()) {
144
+ MUST_BE_TRUE (sendMsgDesc->ResponseLength () <= numDst, " response length mismatch for raw sends" );
158
145
}
146
+ MUST_BE_TRUE (sendMsgDesc->extMessageLength () <= numSrc1, " extended message length mismatch for raw sends" );
159
147
160
- if (status != VISA_SUCCESS)
161
- {
162
- MUST_BE_TRUE (false , ss.str ().c_str ());
163
- return status;
164
- }
165
148
166
149
createSplitSendInst (
167
150
predOpnd,
You can’t perform that action at this time.
0 commit comments