diff options
| -rw-r--r-- | clang/lib/Sema/ScopeInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/ScopeInfo.cpp b/clang/lib/Sema/ScopeInfo.cpp index f3eb8fcebab..8b3493ebfef 100644 --- a/clang/lib/Sema/ScopeInfo.cpp +++ b/clang/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]; |

