[clang] [CodeGen][ObjCGNU] Replace PointerType::getUnqual(Type) with opaque pointer version (NFC) (PR #128715)
Mats Jun Larsen via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 25 05:46:28 PST 2025
================
@@ -3270,9 +3263,7 @@ CGObjCGNU::GenerateProtocolList(ArrayRef<std::string> Protocols) {
llvm::Value *CGObjCGNU::GenerateProtocolRef(CodeGenFunction &CGF,
const ObjCProtocolDecl *PD) {
auto protocol = GenerateProtocolRef(PD);
- llvm::Type *T =
- CGM.getTypes().ConvertType(CGM.getContext().getObjCProtoType());
- return CGF.Builder.CreateBitCast(protocol, llvm::PointerType::getUnqual(T));
+ return CGF.Builder.CreateBitCast(protocol, PtrTy);
----------------
junlarsen wrote:
Is this obsolete? I wasn't quite able to tell.
https://github.com/llvm/llvm-project/pull/128715
More information about the cfe-commits
mailing list