[Hexagon] Capture aggregate variables by reference, not value

llvm-svn: 250851
This commit is contained in:
Krzysztof Parzyszek 2015-10-20 19:33:46 +00:00
parent e4cff4058c
commit 79512b88b0
1 changed files with 1 additions and 1 deletions

View File

@ -188,7 +188,7 @@ bool HexagonEvaluator::evaluate(const MachineInstr *MI,
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())