aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2018-02-07 09:11:07 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2018-02-07 09:11:07 +0000
commit3d5e86e5ee8cbf39939f533dce4c002e8dbf139a (patch)
tree045b269e76574e47d89f702a549fd0555e71481f /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent69246ca7879d81dc3f07d52f768f7550519fbcb6 (diff)
downloadllvm-3d5e86e5ee8cbf39939f533dce4c002e8dbf139a.zip
llvm-3d5e86e5ee8cbf39939f533dce4c002e8dbf139a.tar.gz
llvm-3d5e86e5ee8cbf39939f533dce4c002e8dbf139a.tar.bz2
[ELF] - Remove unused synthetic sections correctly.
This is PR35740 which now crashes because we remove unused synthetic sections incorrectly. We can keep input section description and corresponding output section live even if it must be empty and dead. This results in a crash because SHF_LINK_ORDER handling code tries to access first section which is nullptr in this case. Patch fixes the issue. Differential revision: https://reviews.llvm.org/D42681 llvm-svn: 324463
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions