[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:28 PDT 2024
================
@@ -2386,7 +2386,7 @@ static Instruction *foldSelectCmpBitcasts(SelectInst &Sel,
} else {
return nullptr;
}
- return CastInst::CreateBitOrPointerCast(NewSel, Sel.getType());
+ return CastInst::Create(Instruction::BitCast, NewSel, Sel.getType());
----------------
nikic wrote:
```suggestion
return new BitCastInst(NewSel, Sel.getType());
```
https://github.com/llvm/llvm-project/pull/102631
More information about the llvm-commits
mailing list