[llvm] r250851 - [Hexagon] Capture aggregate variables by reference, not value
Krzysztof Parzyszek via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 20 12:33:47 PDT 2015
Author: kparzysz
Date: Tue Oct 20 14:33:46 2015
New Revision: 250851
URL: http://llvm.org/viewvc/llvm-project?rev=250851&view=rev
Log:
[Hexagon] Capture aggregate variables by reference, not value
Modified:
llvm/trunk/lib/Target/Hexagon/HexagonBitTracker.cpp
Modified: llvm/trunk/lib/Target/Hexagon/HexagonBitTracker.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonBitTracker.cpp?rev=250851&r1=250850&r2=250851&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonBitTracker.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonBitTracker.cpp Tue Oct 20 14:33:46 2015
@@ -188,7 +188,7 @@ bool HexagonEvaluator::evaluate(const Ma
return true;
};
// Get the cell corresponding to the N-th operand.
- auto cop = [this,Reg,MI,Inputs] (unsigned N, uint16_t W)
+ auto cop = [this,&Reg,&MI,&Inputs] (unsigned N, uint16_t W)
-> BT::RegisterCell {
const MachineOperand &Op = MI->getOperand(N);
if (Op.isImm())
More information about the llvm-commits
mailing list