Skip to content

Commit 99a0139

Browse files
[Support] Remove offsetof in AMDHSAKernelDescriptor.h (#158786)
This patch removes offsetof. Note that we already include <cstddef> and that <cstddef> defines offsetof.
1 parent 096b8a8 commit 99a0139

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

llvm/include/llvm/Support/AMDHSAKernelDescriptor.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,6 @@
2525
#include <cstddef>
2626
#include <cstdint>
2727

28-
// Gets offset of specified member in specified type.
29-
#ifndef offsetof
30-
#define offsetof(TYPE, MEMBER) ((size_t)&((TYPE*)0)->MEMBER)
31-
#endif // offsetof
32-
3328
// Creates enumeration entries used for packing bits into integers. Enumeration
3429
// entries include bit shift amount, bit width, and bit mask.
3530
#ifndef AMDHSA_BITS_ENUM_ENTRY

0 commit comments

Comments
 (0)