[lld-macho] Fix left shift of negative value UB
authorDaniel Bertalan <dani@danielbertalan.dev>
Fri, 1 Jul 2022 09:47:34 +0000 (11:47 +0200)
committerDaniel Bertalan <dani@danielbertalan.dev>
Fri, 1 Jul 2022 10:00:16 +0000 (12:00 +0200)
commit73b659ff55ea50c7901012ca0b0bde23a83b208b
tree0d3dd884f8f717b0bb7548833254e9874afc8e60
parent3a4d9b6a6856c5f8cb006f61e93bebb01f956d62
[lld-macho] Fix left shift of negative value UB

I introduced this mistake in 573c7e6b3c79c7ce80a2221e000fab7dd20c0bb4.

Fixes the failure on this UBSan bot:
https://lab.llvm.org/buildbot/#/builders/5/builds/25537
lld/MachO/Arch/ARM64.cpp