[AMDGPU] Fix build failure, second attempt

Some compilers complain that variable is captured and some
complain when it is not. Switch to [&].

llvm-svn: 349006
This commit is contained in:
Stanislav Mekhanoshin 2018-12-13 05:52:11 +00:00
parent 5225746e03
commit d933c2ced7
1 changed files with 1 additions and 1 deletions

View File

@ -199,7 +199,7 @@ static unsigned optimizeVcndVcmpPair(MachineBasicBlock &MBB,
MRI.use_nodbg_empty(CmpReg)) ||
(CmpReg == CondReg &&
std::none_of(std::next(Cmp->getIterator()), Andn2->getIterator(),
[TRI](const MachineInstr &MI) {
[&](const MachineInstr &MI) {
return MI.readsRegister(CondReg, TRI); }))) {
LLVM_DEBUG(dbgs() << "Erasing: " << *Cmp << '\n');