forked from OSchip/llvm-project
Silence sign compare warning. NFC.
ExprConstant.cpp:6344:20: warning: comparison of integers of different signs: 'const size_t' (aka 'const unsigned long') and 'typename iterator_traits<Expr *const *>::difference_type' (aka 'long') [-Wsign-compare] llvm-svn: 295320
This commit is contained in:
parent
8e170fc857
commit
aad1bdc863
|
@ -6340,12 +6340,12 @@ bool RecordExprEvaluator::VisitLambdaExpr(const LambdaExpr *E) {
|
|||
|
||||
const size_t NumFields =
|
||||
std::distance(ClosureClass->field_begin(), ClosureClass->field_end());
|
||||
|
||||
assert(NumFields ==
|
||||
std::distance(E->capture_init_begin(), E->capture_init_end()) &&
|
||||
"The number of lambda capture initializers should equal the number of "
|
||||
"fields within the closure type");
|
||||
|
||||
|
||||
assert(NumFields == (size_t)std::distance(E->capture_init_begin(),
|
||||
E->capture_init_end()) &&
|
||||
"The number of lambda capture initializers should equal the number of "
|
||||
"fields within the closure type");
|
||||
|
||||
Result = APValue(APValue::UninitStruct(), /*NumBases*/0, NumFields);
|
||||
// Iterate through all the lambda's closure object's fields and initialize
|
||||
// them.
|
||||
|
|
Loading…
Reference in New Issue