aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineTraceMetrics.cpp
diff options
context:
space:
mode:
authorShoaib Meenai <smeenai@fb.com>2017-09-20 00:21:58 +0000
committerShoaib Meenai <smeenai@fb.com>2017-09-20 00:21:58 +0000
commite61ca35463829b3b274e1dd58b9b5c5343dccf80 (patch)
tree457e203e9f80a7ce0a845ef3f214dd4bd7032ec7 /llvm/lib/CodeGen/MachineTraceMetrics.cpp
parent064cb68d18f8e9a455c6c9f344e8765f23e14510 (diff)
downloadllvm-e61ca35463829b3b274e1dd58b9b5c5343dccf80.zip
llvm-e61ca35463829b3b274e1dd58b9b5c5343dccf80.tar.gz
llvm-e61ca35463829b3b274e1dd58b9b5c5343dccf80.tar.bz2
[COFF] Adjust secrel limit check
According to Microsoft's PE/COFF documentation, a SECREL relocation is "The 32-bit offset of the target from the beginning of its section". By my reading, the "from the beginning of its section" implies that the offset is unsigned. Change from an assertion to an error, since it's possible to trigger this condition normally for input files with very large sections, and we should fail gracefully for those instead of asserting. Differential Revision: https://reviews.llvm.org/D38020 llvm-svn: 313703
Diffstat (limited to 'llvm/lib/CodeGen/MachineTraceMetrics.cpp')
0 files changed, 0 insertions, 0 deletions