Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit 740265d

Browse files
committed
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
1 parent 16a8b0e commit 740265d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: lib/Sema/ScopeInfo.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ void FunctionScopeInfo::markSafeWeakUse(const Expr *E) {
185185
}
186186

187187
void LambdaScopeInfo::getPotentialVariableCapture(unsigned Idx, VarDecl *&VD, Expr *&E) {
188-
assert((Idx >= 0 && Idx < getNumPotentialVariableCaptures()) &&
188+
assert(Idx < getNumPotentialVariableCaptures() &&
189189
"Index of potential capture must be within 0 to less than the "
190190
"number of captures!");
191191
E = PotentiallyCapturingExprs[Idx];

0 commit comments

Comments
 (0)