[compiler-rt] 2c376fe - [InstrProf] Remove duplicate definition of IntPtrT
Dimitry Andric via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 29 11:35:14 PDT 2024
Author: Dimitry Andric
Date: 2024-07-29T20:34:27+02:00
New Revision: 2c376fe96c83443c15e6485d043ebe321904546b
URL: https://github.com/llvm/llvm-project/commit/2c376fe96c83443c15e6485d043ebe321904546b
DIFF: https://github.com/llvm/llvm-project/commit/2c376fe96c83443c15e6485d043ebe321904546b.diff
LOG: [InstrProf] Remove duplicate definition of IntPtrT
In 16e74fd48988a (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.
Added:
Modified:
compiler-rt/lib/profile/InstrProfiling.h
Removed:
################################################################################
diff --git a/compiler-rt/lib/profile/InstrProfiling.h b/compiler-rt/lib/profile/InstrProfiling.h
index d424a22c212c3..6906d52eacaf1 100644
--- a/compiler-rt/lib/profile/InstrProfiling.h
+++ b/compiler-rt/lib/profile/InstrProfiling.h
@@ -49,7 +49,6 @@ typedef struct ValueProfNode {
#include "profile/InstrProfData.inc"
} ValueProfNode;
-typedef void *IntPtrT;
typedef struct COMPILER_RT_ALIGNAS(INSTR_PROF_DATA_ALIGNMENT) VTableProfData {
#define INSTR_PROF_VTABLE_DATA(Type, LLVMType, Name, Initializer) Type Name;
#include "profile/InstrProfData.inc"
More information about the llvm-commits
mailing list