We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6008cd4 commit a45c783Copy full SHA for a45c783
llvm/lib/IR/IntrinsicInst.cpp
@@ -288,7 +288,8 @@ Value *InstrProfIncrementInst::getStep() const {
288
}
289
const Module *M = getModule();
290
LLVMContext &Context = M->getContext();
291
- return ConstantInt::get(Type::getInt64Ty(Context), 1);
+ const auto &DL = M->getDataLayout();
292
+ return ConstantInt::get(DL.getIntPtrType(Context), 1);
293
294
295
std::optional<RoundingMode> ConstrainedFPIntrinsic::getRoundingMode() const {
0 commit comments