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

Dávid Bolvanský via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 13 07:13:12 PDT 2021


xbolva00 added a comment.

In D109217#2992694 <https://reviews.llvm.org/D109217#2992694>, @dblaikie wrote:

> I'd just saturate to max int, and use the max int value to indicate overflow. Shaving one value off to represent the overflow state seems fine to me.




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

https://reviews.llvm.org/D109217



More information about the llvm-commits mailing list