[llvm] r346723 - [FileCheck] fixing typo in assert
Fedor Sergeev via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 12 17:09:54 PST 2018
Author: fedor.sergeev
Date: Mon Nov 12 17:09:53 2018
New Revision: 346723
URL: http://llvm.org/viewvc/llvm-project?rev=346723&view=rev
Log:
[FileCheck] fixing typo in assert
Modified:
llvm/trunk/lib/Support/FileCheck.cpp
Modified: llvm/trunk/lib/Support/FileCheck.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/FileCheck.cpp?rev=346723&r1=346722&r2=346723&view=diff
==============================================================================
--- llvm/trunk/lib/Support/FileCheck.cpp (original)
+++ llvm/trunk/lib/Support/FileCheck.cpp Mon Nov 12 17:09:53 2018
@@ -536,7 +536,7 @@ static bool IsPartOfWord(char c) {
}
Check::FileCheckType &Check::FileCheckType::setCount(int C) {
- assert(Count > 0 || "zero and negative counts are not supported");
+ assert(Count > 0 && "zero and negative counts are not supported");
assert((C == 1 || Kind == CheckPlain) &&
"count supported only for plain CHECK directives");
Count = C;
More information about the llvm-commits
mailing list