diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 19169f69a66..a38b204b247 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -3685,7 +3685,8 @@ static SDValue ExpandPowI(DebugLoc DL, SDValue LHS, SDValue RHS, bool SelectionDAGBuilder::EmitFuncArgumentDbgValue(const DbgValueInst &DI, const Value *V, MDNode *Variable, - uint64_t Offset, SDValue &N) { + uint64_t Offset, + const SDValue &N) { if (!isa(V)) return false; diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h index baed7e6677e..3fcd4b9dc43 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h @@ -500,7 +500,7 @@ private: /// the entry BB. bool EmitFuncArgumentDbgValue(const DbgValueInst &DI, const Value *V, MDNode *Variable, - uint64_t Offset, SDValue &N); + uint64_t Offset, const SDValue &N); }; } // end namespace llvm