forked from OSchip/llvm-project
Speculatively unbreak Windows build
<windows.h> defines macros named min and max in conflict with <algorithm>. Prevent macro expansion by wrapping std::min in parenthesis. llvm-svn: 250383
This commit is contained in:
parent
54b1eb4c73
commit
6d91aa2bde
|
@ -361,8 +361,8 @@ static void dumpStructure(MemoryBufferRef M) {
|
|||
if (BytesLeftToReadInStream == 0)
|
||||
break;
|
||||
|
||||
uint32_t BytesToReadInBlock =
|
||||
std::min(BytesLeftToReadInStream, static_cast<uint32_t>(SB->BlockSize));
|
||||
uint32_t BytesToReadInBlock = (std::min)(
|
||||
BytesLeftToReadInStream, static_cast<uint32_t>(SB->BlockSize));
|
||||
auto StreamBlockData =
|
||||
StringRef(M.getBufferStart() + StreamBlockOffset, BytesToReadInBlock);
|
||||
if (auto EC = checkOffset(M, StreamBlockData))
|
||||
|
|
Loading…
Reference in New Issue