[llvm] [clang] [LLVM][IR] Replace ConstantInt's specialisation of getType() with getIntegerType(). (PR #75217)
Nikita Popov via cfe-commits
cfe-commits at lists.llvm.org
Tue Dec 12 10:23:30 PST 2023
================
@@ -1688,7 +1688,7 @@ void PolynomialMultiplyRecognize::setupPreSimplifier(Simplifier &S) {
if (I->getOpcode() != Instruction::Or)
return nullptr;
ConstantInt *Msb = dyn_cast<ConstantInt>(I->getOperand(1));
- if (!Msb || Msb->getZExtValue() != Msb->getType()->getSignBit())
+ if (!Msb || Msb->getZExtValue() != Msb->getIntegerType()->getSignBit())
----------------
nikic wrote:
```suggestion
if (!Msb || !Msb->getValue().isSignMask())
```
https://github.com/llvm/llvm-project/pull/75217
More information about the cfe-commits
mailing list