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