1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

Fix MSVC warning "comparison of integers of different signs" (NFC)

From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 265110
This commit is contained in:
Mehdi Amini 2016-04-01 05:19:14 +00:00
parent 240e6e5ee2
commit 573acf53f2

View File

@ -664,7 +664,7 @@ static bool openBitcodeFile(StringRef Path,
// If we have a wrapper header, parse it and ignore the non-bc file contents.
// The magic number is 0x0B17C0DE stored in little endian.
if (isBitcodeWrapper(BufPtr, EndBufPtr)) {
if (EndBufPtr - BufPtr < BWH_HeaderSize)
if (MemBuf->getBufferSize() < BWH_HeaderSize)
return Error("Invalid bitcode wrapper header");
if (Dump) {