[Hexagon] Capture aggregate variables by reference, not value
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>
Tue, 20 Oct 2015 19:33:46 +0000 (19:33 +0000)
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>
Tue, 20 Oct 2015 19:33:46 +0000 (19:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@250851 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/Hexagon/HexagonBitTracker.cpp

index 15163d43fba75d24c240b6438a10f189dde7fc5c..2b338ab4c6fd29ae789cf7db038dbd261627f302 100644 (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())