diff --git a/llvm/tools/llvm-mt/llvm-mt.cpp b/llvm/tools/llvm-mt/llvm-mt.cpp --- a/llvm/tools/llvm-mt/llvm-mt.cpp +++ b/llvm/tools/llvm-mt/llvm-mt.cpp @@ -150,9 +150,9 @@ bool Same = false; if (OutBuffOrErr) { const std::unique_ptr &FileBuffer = *OutBuffOrErr; - Same = std::equal(OutputBuffer->getBufferStart(), - OutputBuffer->getBufferEnd(), - FileBuffer->getBufferStart()); + Same = std::equal( + OutputBuffer->getBufferStart(), OutputBuffer->getBufferEnd(), + FileBuffer->getBufferStart(), FileBuffer->getBufferEnd()); } if (!Same) { #if LLVM_ON_UNIX