use the llvm::all_of, per dblaikie's suggestion.
: Expr(RecoveryExprClass, T, VK_LValue, OK_Ordinary), BeginLoc(BeginLoc),
EndLoc(EndLoc), NumExprs(SubExprs.size()) {
assert(!T.isNull());
-#ifndef NDEBUG // avoid -Wunused warnings.
- for (auto *E : SubExprs)
- assert(E != nullptr);
-#endif
+ assert(llvm::all_of(SubExprs, [](Expr* E) { return E != nullptr; }));
llvm::copy(SubExprs, getTrailingObjects<Expr *>());
setDependence(computeDependence(this));