mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
[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:
parent
edd6d8c36b
commit
f7aedb309c
@ -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');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user