From bd3306aecb3a15e8967143b8cdbbccf2b1b19b74 Mon Sep 17 00:00:00 2001 From: patrick Date: Sat, 14 Jan 2017 19:55:43 +0000 Subject: Import LLVM 3.9.1 including clang and lld. --- gnu/llvm/lib/Support/FileUtilities.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'gnu/llvm/lib/Support/FileUtilities.cpp') diff --git a/gnu/llvm/lib/Support/FileUtilities.cpp b/gnu/llvm/lib/Support/FileUtilities.cpp index 5316f049a38..c6a58cc9d03 100644 --- a/gnu/llvm/lib/Support/FileUtilities.cpp +++ b/gnu/llvm/lib/Support/FileUtilities.cpp @@ -217,8 +217,10 @@ int llvm::DiffFilesWithTolerance(StringRef NameA, bool CompareFailed = false; while (1) { // Scan for the end of file or next difference. - while (F1P < File1End && F2P < File2End && *F1P == *F2P) - ++F1P, ++F2P; + while (F1P < File1End && F2P < File2End && *F1P == *F2P) { + ++F1P; + ++F2P; + } if (F1P >= File1End || F2P >= File2End) break; -- cgit v1.2.3-59-g8ed1b