[PATCH] D146767: [NVPTX] Fix integer overflow affecting array size calculation.

Artem Belevich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 23 16:13:54 PDT 2023


tra added a comment.

In D146767#4217998 <https://reviews.llvm.org/D146767#4217998>, @efriedma wrote:

> Please don't use size_t to represent anything other than the size of a buffer allocated by the compiler itself; LLVM supports 32-bit hosts. We generally use uint64_t for the size of LLVM IR types.

Good point. Fixed.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D146767/new/

https://reviews.llvm.org/D146767



More information about the llvm-commits mailing list