diff options
Diffstat (limited to 'llvm/lib/CodeGen/LiveDebugVariables.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveDebugVariables.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LiveDebugVariables.cpp b/llvm/lib/CodeGen/LiveDebugVariables.cpp index 9a86cc7..c929c1d 100644 --- a/llvm/lib/CodeGen/LiveDebugVariables.cpp +++ b/llvm/lib/CodeGen/LiveDebugVariables.cpp @@ -417,7 +417,7 @@ public: void addDef(SlotIndex Idx, ArrayRef<MachineOperand> LocMOs, bool IsIndirect, bool IsList, const DIExpression &Expr) { SmallVector<unsigned> Locs; - for (MachineOperand Op : LocMOs) + for (const MachineOperand &Op : LocMOs) Locs.push_back(getLocationNo(Op)); DbgVariableValue DbgValue(Locs, IsIndirect, IsList, Expr); // Add a singular (Idx,Idx) -> value mapping. |