diff options
author | Ben Dunbobbin <bd1976llvm@gmail.com> | 2018-08-31 11:51:51 +0000 |
---|---|---|
committer | Ben Dunbobbin <bd1976llvm@gmail.com> | 2018-08-31 11:51:51 +0000 |
commit | df6f0ad2100066098b97a3471788fb2e03323e94 (patch) | |
tree | 9765df0b7042635bda28fce2811c98eee757bde0 /clang-tools-extra/clangd/CodeComplete.cpp | |
parent | fc774e29d291de7b85ccb059b3319048b5cdbdbd (diff) | |
download | bcm5719-llvm-df6f0ad2100066098b97a3471788fb2e03323e94.tar.gz bcm5719-llvm-df6f0ad2100066098b97a3471788fb2e03323e94.zip |
[LLD] Check too large offsets into merge sections earlier
This patch moves the checking for too large offsets into merge sections
earlier.
Without this change the large offset generated in the added test-case
will cause an assert (as it happens to be a value reserved as a
"tombstone" in the DenseMap implementation) when OffsetMap is queried in
getSectionPiece().
To simplify the code and avoid future mistakes I have refactored so that
there is only one function that looks up offsets in the OffsetMap.
Differential Revision: https://reviews.llvm.org/D51180
llvm-svn: 341206
Diffstat (limited to 'clang-tools-extra/clangd/CodeComplete.cpp')
0 files changed, 0 insertions, 0 deletions