mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
Use the range variant of transform instead of unpacking begin/end
No functionality change is intended. llvm-svn: 278477
This commit is contained in:
parent
95fedaaedc
commit
3a66736cb0
@ -152,8 +152,7 @@ bool AArch64RedundantCopyElimination::optimizeCopy(MachineBasicBlock *MBB) {
|
||||
// CBZ/CBNZ. Conservatively mark as much as we can live.
|
||||
CompBr->clearRegisterKills(SmallestDef, TRI);
|
||||
|
||||
if (std::none_of(TargetRegs.begin(), TargetRegs.end(),
|
||||
[&](unsigned Reg) { return MBB->isLiveIn(Reg); }))
|
||||
if (none_of(TargetRegs, [&](unsigned Reg) { return MBB->isLiveIn(Reg); }))
|
||||
MBB->addLiveIn(TargetReg);
|
||||
|
||||
// Clear any kills of TargetReg between CompBr and the last removed COPY.
|
||||
|
@ -1066,9 +1066,9 @@ static bool checkMachOAndArchFlags(SymbolicFile *O, std::string &Filename) {
|
||||
H = MachO->MachOObjectFile::getHeader();
|
||||
T = MachOObjectFile::getArchTriple(H.cputype, H.cpusubtype);
|
||||
}
|
||||
if (std::none_of(
|
||||
ArchFlags.begin(), ArchFlags.end(),
|
||||
[&](const std::string &Name) { return Name == T.getArchName(); })) {
|
||||
if (none_of(ArchFlags, [&](const std::string &Name) {
|
||||
return Name == T.getArchName();
|
||||
})) {
|
||||
error("No architecture specified", Filename);
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user