[Hexagon] Capture aggregate variables by reference, not value
llvm-svn: 250851
This commit is contained in:
parent
e4cff4058c
commit
79512b88b0
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue