[ELF][PPC64]Workaround bogus Visual Studio build warning
authorJames Henderson <jh7370@my.bristol.ac.uk>
Tue, 30 Oct 2018 10:55:14 +0000 (10:55 +0000)
committerJames Henderson <jh7370@my.bristol.ac.uk>
Tue, 30 Oct 2018 10:55:14 +0000 (10:55 +0000)
commit1e74ecab174d4e4d5b7c2403b00778f3baa2262e
tree9dd3cc418b2814377277ba7535b1fb3d18646e22
parent858303b827f0cfcc242ed7852cc36b7dd5a0e95c
[ELF][PPC64]Workaround bogus Visual Studio build warning

Visual Studio has a bug where it converts the integer literal 2147483648
into an unsigned int instead of a long long (i.e. it follows C89 rules).
The bug has been reported as:
https://developercommunity.visualstudio.com/content/problem/141813/-2147483648-c4146-error.html.

Because of this bug, we were getting a signed/unsigned comparison
warning in VS2015 from the old code (the subsequent unary negation had
no effect on the type).

Reviewed by: sfertile

Differential Revision: https://reviews.llvm.org/D53821

llvm-svn: 345579
lld/ELF/Arch/PPC64.cpp