]> granicus.if.org Git - clang/commitdiff
Remove an unnecessary condition that I added hastily: Unsigned numbers are obviously...
authorFaisal Vali <faisalv@yahoo.com>
Thu, 7 Nov 2013 16:57:56 +0000 (16:57 +0000)
committerFaisal Vali <faisalv@yahoo.com>
Thu, 7 Nov 2013 16:57:56 +0000 (16:57 +0000)
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

index f3eb8fcebab50147b450b837c675de82c742a585..8b3493ebfef86783f2553da3dd9abe9295e4fa8c 100644 (file)
@@ -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];