Skip to content

Commit 2c376fe

Browse files
committed
[InstrProf] Remove duplicate definition of IntPtrT
In 16e74fd (for #82711) a duplicate definition of `IntPtrT` was added to `InstrProfiling.h`, leading to warnings: compiler-rt/lib/profile/InstrProfiling.h:52:15: warning: redefinition of typedef 'IntPtrT' is a C11 feature [-Wtypedef-redefinition] 52 | typedef void *IntPtrT; | ^ compiler-rt/lib/profile/InstrProfiling.h:34:15: note: previous definition is here 34 | typedef void *IntPtrT; | ^ Fix the warnings by removing the duplicate typedef.
1 parent 6dba99e commit 2c376fe

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

compiler-rt/lib/profile/InstrProfiling.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ typedef struct ValueProfNode {
4949
#include "profile/InstrProfData.inc"
5050
} ValueProfNode;
5151

52-
typedef void *IntPtrT;
5352
typedef struct COMPILER_RT_ALIGNAS(INSTR_PROF_DATA_ALIGNMENT) VTableProfData {
5453
#define INSTR_PROF_VTABLE_DATA(Type, LLVMType, Name, Initializer) Type Name;
5554
#include "profile/InstrProfData.inc"

0 commit comments

Comments
 (0)