diff --git a/projects/clr/hipamd/src/hip_stream.cpp b/projects/clr/hipamd/src/hip_stream.cpp index ec178d4bea..ff3d68388f 100644 --- a/projects/clr/hipamd/src/hip_stream.cpp +++ b/projects/clr/hipamd/src/hip_stream.cpp @@ -547,7 +547,7 @@ hipError_t hipStreamQuery_common(hipStream_t stream) { if (stream != nullptr) { // If still capturing return error if (hip::Stream::StreamCaptureOngoing(stream) == true) { - HIP_RETURN(hipErrorStreamCaptureUnsupported); + return hipErrorStreamCaptureUnsupported; } } bool wait = (stream == nullptr) ? true : false;