From 2f2dafa73263e279a66fc69a448c35a9aa1c14cc Mon Sep 17 00:00:00 2001 From: Sourabh Betigeri Date: Fri, 1 Oct 2021 19:14:00 +0000 Subject: [PATCH] SWDEV-292525 - Adds parentheses to fix regression Debug builds fails with error due to missing parentheses with -Werror=parentheses enabled Change-Id: I5745a63b5cf2c7a3aeed90ea572081a6fa67e366 [ROCm/clr commit: 5e116c6c999394b5e9d89ed294c8e025ab2b6b38] --- projects/clr/rocclr/platform/command.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/clr/rocclr/platform/command.hpp b/projects/clr/rocclr/platform/command.hpp index b41b4c17b0..580493ae3d 100644 --- a/projects/clr/rocclr/platform/command.hpp +++ b/projects/clr/rocclr/platform/command.hpp @@ -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"); }