[llvm] [IR] Replace of PointerType::getUnqual(Type) with opaque version (NFC) (PR #123909)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 22 01:50:29 PST 2025
================
@@ -380,12 +380,11 @@ void ObjCARCContract::tryToContractReleaseIntoStoreStrong(
<< " Load: " << *Load << "\n");
LLVMContext &C = Release->getContext();
- Type *I8X = PointerType::getUnqual(Type::getInt8Ty(C));
- Type *I8XX = PointerType::getUnqual(I8X);
+ Type *I8X = PointerType::getUnqual(C);
Value *Args[] = { Load->getPointerOperand(), New };
- if (Args[0]->getType() != I8XX)
- Args[0] = new BitCastInst(Args[0], I8XX, "", Store->getIterator());
+ if (Args[0]->getType() != I8X)
+ Args[0] = new BitCastInst(Args[0], I8X, "", Store->getIterator());
----------------
nikic wrote:
Can drop these bitcasts.
https://github.com/llvm/llvm-project/pull/123909
More information about the llvm-commits
mailing list