[BOLT] Fix getDynoStats to handle BCs with no functions
authorAmir Ayupov <aaupov@fb.com>
Thu, 30 Jun 2022 08:15:49 +0000 (01:15 -0700)
committerAmir Ayupov <aaupov@fb.com>
Thu, 30 Jun 2022 08:18:45 +0000 (01:18 -0700)
commit66b01a89346c600b34fb9e442dbc56d827755896
tree7a7637eea1958d81f3b0719172d9fc116db636f4
parent24b5f8e0d0bd6851e01dbe2de4c71df4b3b0760b
[BOLT] Fix getDynoStats to handle BCs with no functions

Address fuzzer crash

Reviewed By: yota9

Differential Revision: https://reviews.llvm.org/D120696
bolt/include/bolt/Core/DynoStats.h
bolt/include/bolt/Passes/BinaryPasses.h
bolt/lib/Rewrite/BinaryPassManager.cpp
bolt/unittests/Core/CMakeLists.txt
bolt/unittests/Core/DynoStats.cpp [new file with mode: 0644]