diff options
| author | Mehdi Amini <mehdi.amini@apple.com> | 2016-04-01 05:19:14 +0000 |
|---|---|---|
| committer | Mehdi Amini <mehdi.amini@apple.com> | 2016-04-01 05:19:14 +0000 |
| commit | eed269329caa92d0bf11c72a2eec0e7143bea18b (patch) | |
| tree | 24bbe59493c2f98a5112fdc30e88430b99606493 /llvm/tools/llvm-bcanalyzer | |
| parent | 180441f09a75db6748db9c7de8da35437f39e402 (diff) | |
| download | bcm5719-llvm-eed269329caa92d0bf11c72a2eec0e7143bea18b.tar.gz bcm5719-llvm-eed269329caa92d0bf11c72a2eec0e7143bea18b.zip | |
Fix MSVC warning "comparison of integers of different signs" (NFC)
From: Mehdi Amini <mehdi.amini@apple.com>
llvm-svn: 265110
Diffstat (limited to 'llvm/tools/llvm-bcanalyzer')
| -rw-r--r-- | llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp b/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp index 6645045db8f..d1cc1a02778 100644 --- a/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp +++ b/llvm/tools/llvm-bcanalyzer/llvm-bcanalyzer.cpp @@ -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) { |

