Don't pass SDValues by non-const reference unless they may be
authorDan Gohman <gohman@apple.com>
Sat, 1 May 2010 00:33:16 +0000 (00:33 +0000)
committerDan Gohman <gohman@apple.com>
Sat, 1 May 2010 00:33:16 +0000 (00:33 +0000)
modified.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102816 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h

index 19169f69a66a3a70fbe583217f78da5db51d5f8b..a38b204b247e49aeb818e688011ca0ed2df63fa9 100644 (file)
@@ -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<Argument>(V))
     return false;
 
index baed7e6677e6e94f6831af7545017cc420566fd6..3fcd4b9dc437f639c9b1b4f1646f983a80ed843a 100644 (file)
@@ -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