mirror of
https://github.com/intel/llvm.git
synced 2026-02-06 23:31:50 +08:00
Remove useless cast.
llvm-svn: 315421
This commit is contained in:
@@ -224,9 +224,8 @@ static bool matchConstraints(ArrayRef<InputSectionBase *> Sections,
|
||||
if (Kind == ConstraintKind::NoConstraint)
|
||||
return true;
|
||||
|
||||
bool IsRW = llvm::any_of(Sections, [](InputSectionBase *Sec) {
|
||||
return static_cast<InputSectionBase *>(Sec)->Flags & SHF_WRITE;
|
||||
});
|
||||
bool IsRW = llvm::any_of(
|
||||
Sections, [](InputSectionBase *Sec) { return Sec->Flags & SHF_WRITE; });
|
||||
|
||||
return (IsRW && Kind == ConstraintKind::ReadWrite) ||
|
||||
(!IsRW && Kind == ConstraintKind::ReadOnly);
|
||||
|
||||
Reference in New Issue
Block a user