From 740265db4f5764782d3486d855bfccfc7d49f194 Mon Sep 17 00:00:00 2001 From: Faisal Vali Date: Thu, 7 Nov 2013 16:57:56 +0000 Subject: [PATCH] Remove an unnecessary condition that I added hastily: Unsigned numbers are obviously >= 0 ;) Also - others have complained about some white space issues - sorry about that - continues to be a pain point for me - will try and see what I can do with clang-format this evening after work - as a short term fix, if anyone can email me the files that they have already identified with issues, it would help me speed up a focused fix. sorry. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@194206 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Sema/ScopeInfo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Sema/ScopeInfo.cpp b/lib/Sema/ScopeInfo.cpp index f3eb8fceba..8b3493ebfe 100644 --- a/lib/Sema/ScopeInfo.cpp +++ b/lib/Sema/ScopeInfo.cpp @@ -185,7 +185,7 @@ void FunctionScopeInfo::markSafeWeakUse(const Expr *E) { } void LambdaScopeInfo::getPotentialVariableCapture(unsigned Idx, VarDecl *&VD, Expr *&E) { - assert((Idx >= 0 && Idx < getNumPotentialVariableCaptures()) && + assert(Idx < getNumPotentialVariableCaptures() && "Index of potential capture must be within 0 to less than the " "number of captures!"); E = PotentiallyCapturingExprs[Idx]; -- 2.40.0