From 4b22db3e7526828ad55fc455960b77f0dad437ff Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Mon, 15 Sep 2025 16:27:06 -0700 Subject: [PATCH] [Support] Remove offsetof in AMDHSAKernelDescriptor.h This patch removes offsetof. Note that we already include and that defines offsetof. --- llvm/include/llvm/Support/AMDHSAKernelDescriptor.h | 5 ----- 1 file changed, 5 deletions(-) diff --git a/llvm/include/llvm/Support/AMDHSAKernelDescriptor.h b/llvm/include/llvm/Support/AMDHSAKernelDescriptor.h index 418d2b36114c5..3f966acdf12af 100644 --- a/llvm/include/llvm/Support/AMDHSAKernelDescriptor.h +++ b/llvm/include/llvm/Support/AMDHSAKernelDescriptor.h @@ -25,11 +25,6 @@ #include #include -// Gets offset of specified member in specified type. -#ifndef offsetof -#define offsetof(TYPE, MEMBER) ((size_t)&((TYPE*)0)->MEMBER) -#endif // offsetof - // Creates enumeration entries used for packing bits into integers. Enumeration // entries include bit shift amount, bit width, and bit mask. #ifndef AMDHSA_BITS_ENUM_ENTRY