mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
[AMDGPU] Fix build failure
Fixed error 'lambda capture 'CondReg' is not required to be captured for this use'. llvm-svn: 349005
This commit is contained in:
parent
198d2e45b0
commit
edd6d8c36b
@ -199,7 +199,7 @@ static unsigned optimizeVcndVcmpPair(MachineBasicBlock &MBB,
|
|||||||
MRI.use_nodbg_empty(CmpReg)) ||
|
MRI.use_nodbg_empty(CmpReg)) ||
|
||||||
(CmpReg == CondReg &&
|
(CmpReg == CondReg &&
|
||||||
std::none_of(std::next(Cmp->getIterator()), Andn2->getIterator(),
|
std::none_of(std::next(Cmp->getIterator()), Andn2->getIterator(),
|
||||||
[TRI, CondReg](const MachineInstr &MI) {
|
[TRI](const MachineInstr &MI) {
|
||||||
return MI.readsRegister(CondReg, TRI); }))) {
|
return MI.readsRegister(CondReg, TRI); }))) {
|
||||||
LLVM_DEBUG(dbgs() << "Erasing: " << *Cmp << '\n');
|
LLVM_DEBUG(dbgs() << "Erasing: " << *Cmp << '\n');
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user