Skip to content

Commit a8c3b3e

Browse files
[nfc][compiler-rt]Replace Type::getInt8PtrTy with PointerType::getUnqual as a clean-up (#82434)
This is a follow up of 7b9d73c and 5ef9ba7 * The definition of `Type::getInt8PtrTy` is deleted. This doesn't cause a compile error because the `Initializer` part of the macro doesn't run.
1 parent a4096ea commit a8c3b3e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler-rt/include/profile/InstrProfData.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ INSTR_PROF_VALUE_NODE(uint64_t, llvm::Type::getInt64Ty(Ctx), Value, \
119119
INSTR_PROF_VALUE_NODE(uint64_t, llvm::Type::getInt64Ty(Ctx), Count, \
120120
ConstantInt::get(llvm::Type::GetInt64Ty(Ctx), 0))
121121
INSTR_PROF_VALUE_NODE(PtrToNodeT, llvm::PointerType::getUnqual(Ctx), Next, \
122-
ConstantInt::get(llvm::Type::GetInt8PtrTy(Ctx), 0))
122+
ConstantInt::get(llvm::PointerType::getUnqual(Ctx), 0))
123123
#undef INSTR_PROF_VALUE_NODE
124124
/* INSTR_PROF_VALUE_NODE end. */
125125

llvm/include/llvm/ProfileData/InstrProfData.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ INSTR_PROF_VALUE_NODE(uint64_t, llvm::Type::getInt64Ty(Ctx), Value, \
119119
INSTR_PROF_VALUE_NODE(uint64_t, llvm::Type::getInt64Ty(Ctx), Count, \
120120
ConstantInt::get(llvm::Type::GetInt64Ty(Ctx), 0))
121121
INSTR_PROF_VALUE_NODE(PtrToNodeT, llvm::PointerType::getUnqual(Ctx), Next, \
122-
ConstantInt::get(llvm::Type::GetInt8PtrTy(Ctx), 0))
122+
ConstantInt::get(llvm::PointerType::getUnqual(Ctx), 0))
123123
#undef INSTR_PROF_VALUE_NODE
124124
/* INSTR_PROF_VALUE_NODE end. */
125125

0 commit comments

Comments
 (0)