[clang] [llvm] [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
================
@@ -6079,7 +6079,7 @@ static Value *simplifyRelativeLoad(Constant *Ptr, Constant *Offset,
Type *Int32Ty = Type::getInt32Ty(Ptr->getContext());
auto *OffsetConstInt = dyn_cast<ConstantInt>(Offset);
- if (!OffsetConstInt || OffsetConstInt->getType()->getBitWidth() > 64)
+ if (!OffsetConstInt || OffsetConstInt->getIntegerType()->getBitWidth() > 64)
----------------
nikic wrote:
```suggestion
if (!OffsetConstInt || OffsetConstInt->getBitWidth() > 64)
```
https://github.com/llvm/llvm-project/pull/75217
More information about the cfe-commits
mailing list