diff options
author | wlei <wlei@fb.com> | 2021-11-04 20:51:04 -0700 |
---|---|---|
committer | wlei <wlei@fb.com> | 2021-11-05 18:38:40 -0700 |
commit | 5bf191a381bba84edc791710e914147de23691dd (patch) | |
tree | ba4be992cb27b08095511580214969b77dd6a4bb /llvm/lib/Linker/LinkModules.cpp | |
parent | 845561ec9d009445c99b51b61810b57bb03e1303 (diff) | |
download | llvm-5bf191a381bba84edc791710e914147de23691dd.zip llvm-5bf191a381bba84edc791710e914147de23691dd.tar.gz llvm-5bf191a381bba84edc791710e914147de23691dd.tar.bz2 |
[llvm-profgen] Fix index out of bounds error while using ip.advance
Previously we assume there're some non-executing sections at the bottom of the text section so that we won't hit the array's bound. But on BOLTed binary, it turned out .bolt section is at the bottom of text section which can be profiled, then it crash llvm-profgen. This change try to fix it.
Reviewed By: hoy, wenlei
Differential Revision: https://reviews.llvm.org/D113238
Diffstat (limited to 'llvm/lib/Linker/LinkModules.cpp')
0 files changed, 0 insertions, 0 deletions