[PATCH] D109217: [llvm-dwarfdump] Fix unsigned overflow when calculating stats

Thorsten via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 9 11:25:17 PDT 2021


tschuett added a comment.

You will always know whether it is max int or max int because of saturating behaviour.

  class SatUint32 {
    uint32_t value;
    bool overflowed;
  }


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

https://reviews.llvm.org/D109217



More information about the llvm-commits mailing list