[clang] [llvm] [LLVM][IR] Replace ConstantInt's specialisation of getType() with getIntegerType(). (PR #75217)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 12 10:23:30 PST 2023
================
@@ -1062,7 +1062,7 @@ void PolynomialMultiplyRecognize::promoteTo(Instruction *In,
// Promote immediates.
for (unsigned i = 0, n = In->getNumOperands(); i != n; ++i) {
if (ConstantInt *CI = dyn_cast<ConstantInt>(In->getOperand(i)))
- if (CI->getType()->getBitWidth() < DestBW)
+ if (CI->getIntegerType()->getBitWidth() < DestBW)
----------------
nikic wrote:
```suggestion
if (CI->getBitWidth() < DestBW)
```
https://github.com/llvm/llvm-project/pull/75217
More information about the llvm-commits
mailing list