projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e1a99f
)
Make this more efficient now that we know both files are the same length.
author
Chris Lattner
<sabre@nondot.org>
Tue, 15 Feb 2005 22:01:43 +0000
(22:01 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 15 Feb 2005 22:01:43 +0000
(22:01 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20202
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/FileUtilities.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/FileUtilities.cpp
b/lib/Support/FileUtilities.cpp
index 0a55bc831247f4c37207f87dfa2ed4558095561f..6ac9bc91bc31de8786bcdb8384e9359616e1d77e 100644
(file)
--- a/
lib/Support/FileUtilities.cpp
+++ b/
lib/Support/FileUtilities.cpp
@@
-148,11
+148,11
@@
int llvm::DiffFilesWithTolerance(const sys::Path &FileA,
if (A_size == B_size) {
// Scan for the end of file or first difference.
- while (F1P < File1End &&
F2P < File2End &&
*F1P == *F2P)
+ while (F1P < File1End && *F1P == *F2P)
++F1P, ++F2P;
// Common case: identifical files.
- if (F1P == File1End
&& F2P == File2End)
+ if (F1P == File1End
)
return 0; // Scanned to end, files same
if (AbsTol == 0 && RelTol == 0)