[Offload] Fix level_zero plugin build (#175664)

Build has been broken when OMPTARGET_DEBUG is undefined.
This commit is contained in:
Hansang Bae 2026-01-12 16:53:23 -06:00 committed by GitHub
parent 5c764b4e3c
commit 496729fe7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -16,7 +16,6 @@
namespace llvm::omp::target::plugin {
#if OMPTARGET_DEBUG
static const char *AllocKindToStr(int32_t Kind) {
switch (Kind) {
case TARGET_ALLOC_DEVICE:
@ -29,7 +28,6 @@ static const char *AllocKindToStr(int32_t Kind) {
return "DEFAULT";
}
}
#endif
void *MemAllocatorTy::MemPoolTy::BlockTy::alloc() {
if (isFull())