Skip to content

Commit 0ef1e69

Browse files
[clang] Strip away lambdas (NFC) (#143226)
We don't need lambdas here.
1 parent 477f9f6 commit 0ef1e69

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

clang/lib/CodeGen/CGCall.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2371,9 +2371,8 @@ static bool canApplyNoFPClass(const ABIArgInfo &AI, QualType ParamType,
23712371

23722372
if (llvm::StructType *ST = dyn_cast<llvm::StructType>(IRTy)) {
23732373
return !IsReturn && AI.getCanBeFlattened() &&
2374-
llvm::all_of(ST->elements(), [](llvm::Type *Ty) {
2375-
return llvm::AttributeFuncs::isNoFPClassCompatibleType(Ty);
2376-
});
2374+
llvm::all_of(ST->elements(),
2375+
llvm::AttributeFuncs::isNoFPClassCompatibleType);
23772376
}
23782377

23792378
return false;

clang/lib/Sema/Sema.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1375,8 +1375,7 @@ void Sema::ActOnEndOfTranslationUnit() {
13751375

13761376
CurrentModule->NamedModuleHasInit =
13771377
DoesModNeedInit(CurrentModule) ||
1378-
llvm::any_of(CurrentModule->submodules(),
1379-
[&](auto *SubM) { return DoesModNeedInit(SubM); });
1378+
llvm::any_of(CurrentModule->submodules(), DoesModNeedInit);
13801379
}
13811380

13821381
if (TUKind == TU_ClangModule) {

0 commit comments

Comments
 (0)