mirror of
https://github.com/intel/llvm.git
synced 2026-01-18 07:57:36 +08:00
Remove = from a lambda that doesn't capture any variable.
llvm-svn: 299495
This commit is contained in:
@@ -314,10 +314,11 @@ static bool matchConstraints(ArrayRef<InputSectionBase *> Sections,
|
||||
ConstraintKind Kind) {
|
||||
if (Kind == ConstraintKind::NoConstraint)
|
||||
return true;
|
||||
bool IsRW = llvm::any_of(Sections, [=](InputSectionBase *Sec2) {
|
||||
auto *Sec = static_cast<InputSectionBase *>(Sec2);
|
||||
return Sec->Flags & SHF_WRITE;
|
||||
|
||||
bool IsRW = llvm::any_of(Sections, [](InputSectionBase *Sec) {
|
||||
return static_cast<InputSectionBase *>(Sec)->Flags & SHF_WRITE;
|
||||
});
|
||||
|
||||
return (IsRW && Kind == ConstraintKind::ReadWrite) ||
|
||||
(!IsRW && Kind == ConstraintKind::ReadOnly);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user