summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clangd/CodeComplete.cpp
diff options
context:
space:
mode:
authorBen Dunbobbin <bd1976llvm@gmail.com>2018-08-31 11:51:51 +0000
committerBen Dunbobbin <bd1976llvm@gmail.com>2018-08-31 11:51:51 +0000
commitdf6f0ad2100066098b97a3471788fb2e03323e94 (patch)
tree9765df0b7042635bda28fce2811c98eee757bde0 /clang-tools-extra/clangd/CodeComplete.cpp
parentfc774e29d291de7b85ccb059b3319048b5cdbdbd (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud