1 Commits

Author SHA1 Message Date
Maksim Panchenko
c4e60a7f60 [BOLT] Fix --max-funcs=<N> option
Fix off-by-one error while handling of the --max-funcs=<N> option.
We used to process N+1 functions when N was requested.

Reviewed By: Amir

Differential Revision: https://reviews.llvm.org/D152751
2023-06-12 16:54:14 -07:00