================ @@ -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 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits