SWDEV-292525 - Adds parentheses to fix regression

Debug builds fails with error due to missing
parentheses with -Werror=parentheses enabled

Change-Id: I5745a63b5cf2c7a3aeed90ea572081a6fa67e366
This commit is contained in:
Sourabh Betigeri authored and Sourabh Betigeri committed 2021-10-06 13:38:55 -04:00
1 parent 7fe696b6ef
commit 5e116c6c99
1 file changed
+1 -1
+1 -1
View File
@@ -783,7 +783,7 @@ class StreamOperationCommand : public OneMemoryArgCommand {
// Sanity check
assert((cmdType == ROCCLR_COMMAND_STREAM_WRITE_VALUE) ||
(cmdType == ROCCLR_COMMAND_STREAM_WAIT_VALUE) ||
(cmdType == ROCCLR_COMMAND_STREAM_WAIT_VALUE && GPU_STREAMOPS_CP_WAIT &&
((cmdType == ROCCLR_COMMAND_STREAM_WAIT_VALUE) && GPU_STREAMOPS_CP_WAIT &&
(memory_->getMemFlags() & ROCCLR_MEM_HSA_SIGNAL_MEMORY)) &&
"Invalid Stream Operation");
}