[llvm] Clean up after transition into opaque pointers. NFC (PR #102631)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 9 08:49:29 PDT 2024


================
@@ -4567,7 +4567,7 @@ Instruction *InstCombinerImpl::foldNot(BinaryOperator &I) {
     Type *SextTy = cast<BitCastOperator>(NotOp)->getSrcTy();
     Value *NotX = Builder.CreateNot(X);
     Value *Sext = Builder.CreateSExt(NotX, SextTy);
-    return CastInst::CreateBitOrPointerCast(Sext, Ty);
+    return CastInst::Create(Instruction::BitCast, Sext, Ty);
----------------
nikic wrote:

```suggestion
    return new BitCastInst(Sext, Ty);
```

https://github.com/llvm/llvm-project/pull/102631


More information about the llvm-commits mailing list