Skip to content

Commit 1eee8e0

Browse files
committed
Change to unreachable
1 parent 0d6ace8 commit 1eee8e0

File tree

1 file changed

+1
-1
lines changed
  • offload/plugins-nextgen/amdgpu/src

1 file changed

+1
-1
lines changed

offload/plugins-nextgen/amdgpu/src/rtl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2643,7 +2643,7 @@ struct AMDGPUDeviceTy : public GenericDeviceTy, AMDGenericDeviceTy {
26432643
Pattern = *reinterpret_cast<const uint32_t *>(PatternPtr);
26442644
} else {
26452645
// Shouldn't be here if the pattern size is outwith those values
2646-
std::terminate();
2646+
llvm_unreachable("Invalid pattern size");
26472647
}
26482648

26492649
if (hasPendingWorkImpl(AsyncInfoWrapper)) {

0 commit comments

Comments
 (0)