diff options
author | Lang Hames <lhames@gmail.com> | 2022-04-05 11:45:25 -0700 |
---|---|---|
committer | Lang Hames <lhames@gmail.com> | 2022-04-05 13:02:28 -0700 |
commit | 01bc5b703462f4cb10ed3afdfe6d00923d22dbab (patch) | |
tree | fb9fbf72baf90d2bfec56e95d2b757dc8a6e7028 /clang/lib/Basic/Module.cpp | |
parent | 077f90315bec29443784a1bb2c55f3d7fc2eab64 (diff) | |
download | llvm-01bc5b703462f4cb10ed3afdfe6d00923d22dbab.zip llvm-01bc5b703462f4cb10ed3afdfe6d00923d22dbab.tar.gz llvm-01bc5b703462f4cb10ed3afdfe6d00923d22dbab.tar.bz2 |
[JITLink] Fix sorting bug for PC-begin candidate symbols during EH-frame fixup.
The sort should have been lexicographic, but wasn't. This resulted in us
choosing a common symbol at address zero over the intended target function,
leading to a crash.
This patch also moves sorting up to the start of the pass, which means that we
only need to hold on to the canonical symbol at each address rather than a list
of candidates.
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
0 files changed, 0 insertions, 0 deletions