diff options
author | Faisal Vali <faisalv@yahoo.com> | 2013-11-07 16:57:56 +0000 |
---|---|---|
committer | Faisal Vali <faisalv@yahoo.com> | 2013-11-07 16:57:56 +0000 |
commit | 9366a48583fdfb893d7962b4fe112921f7dcfea2 (patch) | |
tree | 6c90daf94f8fddbff5be6c208494fd973952e8cb /clang/lib/Sema/ScopeInfo.cpp | |
parent | c18b6d108347c9d6cf9e860d765d4a87e2d900d1 (diff) | |
download | bcm5719-llvm-9366a48583fdfb893d7962b4fe112921f7dcfea2.tar.gz bcm5719-llvm-9366a48583fdfb893d7962b4fe112921f7dcfea2.zip |
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.
llvm-svn: 194206
Diffstat (limited to 'clang/lib/Sema/ScopeInfo.cpp')
-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]; |