[llvm] r349006 - [AMDGPU] Fix build failure, second attempt
Stanislav Mekhanoshin via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 12 21:52:11 PST 2018
Author: rampitec
Date: Wed Dec 12 21:52:11 2018
New Revision: 349006
URL: http://llvm.org/viewvc/llvm-project?rev=349006&view=rev
Log:
[AMDGPU] Fix build failure, second attempt
Some compilers complain that variable is captured and some
complain when it is not. Switch to [&].
Modified:
llvm/trunk/lib/Target/AMDGPU/SIOptimizeExecMaskingPreRA.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/SIOptimizeExecMaskingPreRA.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/SIOptimizeExecMaskingPreRA.cpp?rev=349006&r1=349005&r2=349006&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIOptimizeExecMaskingPreRA.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/SIOptimizeExecMaskingPreRA.cpp Wed Dec 12 21:52:11 2018
@@ -199,7 +199,7 @@ static unsigned optimizeVcndVcmpPair(Mac
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');
More information about the llvm-commits
mailing list