Skip to content

Commit 7f9bacd

Browse files
[IR] Remove an unnecessary cast (NFC) (#147205)
Tys is already of Type **.
1 parent 1565310 commit 7f9bacd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/include/llvm/IR/Type.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ inline Type **unwrap(LLVMTypeRef* Tys) {
515515
}
516516

517517
inline LLVMTypeRef *wrap(Type **Tys) {
518-
return reinterpret_cast<LLVMTypeRef*>(const_cast<Type**>(Tys));
518+
return reinterpret_cast<LLVMTypeRef *>(Tys);
519519
}
520520

521521
} // end namespace llvm

0 commit comments

Comments
 (0)