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 180441f09a
commit eed269329c
1 changed files with 1 additions and 1 deletions

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) {