[llvm] 7f9bacd - [IR] Remove an unnecessary cast (NFC) (#147205)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 6 19:06:03 PDT 2025
Author: Kazu Hirata
Date: 2025-07-06T19:06:00-07:00
New Revision: 7f9bacd58e86c7d84357d4f30393d48da300d62d
URL: https://github.com/llvm/llvm-project/commit/7f9bacd58e86c7d84357d4f30393d48da300d62d
DIFF: https://github.com/llvm/llvm-project/commit/7f9bacd58e86c7d84357d4f30393d48da300d62d.diff
LOG: [IR] Remove an unnecessary cast (NFC) (#147205)
Tys is already of Type **.
Added:
Modified:
llvm/include/llvm/IR/Type.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/IR/Type.h b/llvm/include/llvm/IR/Type.h
index fd987179645dd..74dd490729741 100644
--- a/llvm/include/llvm/IR/Type.h
+++ b/llvm/include/llvm/IR/Type.h
@@ -515,7 +515,7 @@ inline Type **unwrap(LLVMTypeRef* Tys) {
}
inline LLVMTypeRef *wrap(Type **Tys) {
- return reinterpret_cast<LLVMTypeRef*>(const_cast<Type**>(Tys));
+ return reinterpret_cast<LLVMTypeRef *>(Tys);
}
} // end namespace llvm
More information about the llvm-commits
mailing list