summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorminglotus-6 <mingmingl@google.com>2022-02-21 19:17:06 -0800
committerminglotus-6 <mingmingl@google.com>2022-02-22 21:44:32 -0800
commitf415d74d1df3995795c889333d493b0dcc31a863 (patch)
tree4887c91a489294faf3603e1244109516bd3038f4 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentb96fc4860f1615d8d1f686f1e400cc1f8e0d58ac (diff)
[SampleProfile] Handle the case when the option `MaxNumPromotions` is zero.
In places where `MaxNumPromotions` is used to allocated an array, bail out early to prevent allocating an array of length 0. Differential Revision: https://reviews.llvm.org/D120295
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions