Fix FileCheck crash when fuzzy scanning starting at the end of the file.

llvm-svn: 90065
diff --git a/llvm/utils/FileCheck/FileCheck.cpp b/llvm/utils/FileCheck/FileCheck.cpp
index 101ff24..078028a 100644
--- a/llvm/utils/FileCheck/FileCheck.cpp
+++ b/llvm/utils/FileCheck/FileCheck.cpp
@@ -398,7 +398,7 @@
     }
   }
 
-  if (BestQuality < 50) {
+  if (Best != StringRef::npos && BestQuality < 50) {
     // Print the "possible intended match here" line if we found something
     // reasonable.
     SM.PrintMessage(SMLoc::getFromPointer(Buffer.data() + Best),