Skip to content
Commit f4425b02 authored by Reid Spencer's avatar Reid Spencer
Browse files

Adjust DiffFilesWithTolerance to help poor cygwin's mmap facility by

handling zero length files a little more intelligently. If both files are
zero length then we return 0 (true) indicating a match. If only one of the
files is zero length then we return 1 (false) indicating that the files
differ. If the files don't agree in length then they can't match so we
skip the first loop that looks for a quick match.

llvm-svn: 20200
parent 5f7c5359
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment