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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user