[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
================
@@ -868,7 +868,7 @@ Constant *llvm::ConstantFoldBinaryInstruction(unsigned Opcode, Constant *C1,
}
if (GVAlign > 1) {
- unsigned DstWidth = CI2->getType()->getBitWidth();
+ unsigned DstWidth = CI2->getIntegerType()->getBitWidth();
----------------
nikic wrote:
```suggestion
unsigned DstWidth = CI2->getBitWidth();
```
https://github.com/llvm/llvm-project/pull/75217
More information about the llvm-commits
mailing list