[flang-commits] [flang] [flang] Check for overflows in RESHAPE folding (PR #68342)

Peter Klausler via flang-commits flang-commits at lists.llvm.org
Mon Oct 16 10:38:26 PDT 2023


https://github.com/klausler commented:

A better change would be to alter the API to TotalElementCount() so that it returns `std::optional<uint64_t>` with a value present only if no overflow occurs.  This would force all call sites to check for and deal with overflow.

https://github.com/llvm/llvm-project/pull/68342


More information about the flang-commits mailing list