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:
cd188e9
)
Fix FileCheck crash when fuzzy scanning starting at the end of the file.
author
Daniel Dunbar
<daniel@zuster.org>
Sun, 29 Nov 2009 08:30:24 +0000
(08:30 +0000)
committer
Daniel Dunbar
<daniel@zuster.org>
Sun, 29 Nov 2009 08:30:24 +0000
(08:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@90065
91177308
-0d34-0410-b5e6-
96231b3b80d8
utils/FileCheck/FileCheck.cpp
patch
|
blob
|
history
diff --git
a/utils/FileCheck/FileCheck.cpp
b/utils/FileCheck/FileCheck.cpp
index 101ff2488089e1a9ad0261cdd93199f033842101..078028a115cf27a0ea31e4f288c05c98a131519c 100644
(file)
--- a/
utils/FileCheck/FileCheck.cpp
+++ b/
utils/FileCheck/FileCheck.cpp
@@
-398,7
+398,7
@@
void Pattern::PrintFailureInfo(const SourceMgr &SM, StringRef Buffer,
}
}
- if (BestQuality < 50) {
+ if (Best
!= StringRef::npos && Best
Quality < 50) {
// Print the "possible intended match here" line if we found something
// reasonable.
SM.PrintMessage(SMLoc::getFromPointer(Buffer.data() + Best),