SWDEV-353548 - assert with different behavior for Release vs Debug

assert statement behavior
-Debug: crashes tests with SIGABORT
-Release: continues silently without

Change-Id: I7578eb16a7391ff7f9d68f1cae3bcea7f8225579
This commit is contained in:
Ajay
2022-09-21 19:50:06 +00:00
committed by Ajay GunaShekar
parent 7ef4eada54
commit be80bf5406
4 changed files with 19 additions and 32 deletions
+2 -2
View File
@@ -873,7 +873,7 @@ amd::Image* ihipImageCreate(const cl_channel_order channelOrder,
imageSlicePitch);
break;
default:
ShouldNotReachHere();
LogPrintfError("Cannot create image of imageType: 0x%x \n", imageType);
}
} else {
switch (imageType) {
@@ -916,7 +916,7 @@ amd::Image* ihipImageCreate(const cl_channel_order channelOrder,
numMipLevels);
break;
default:
ShouldNotReachHere();
LogPrintfError("Cannot create image of imageType: 0x%x \n", imageType);
}
}