commit | 764bd4bf9503227ad36c3f423965fd5c7476cc38 | [log] [tgz] |
---|---|---|
author | Dan Gohman <gohman@apple.com> | Sat May 01 00:33:16 2010 +0000 |
committer | Dan Gohman <gohman@apple.com> | Sat May 01 00:33:16 2010 +0000 |
tree | 5f78fa8453775ebeea36c72f2d82de4916558ccc | |
parent | b58dd0eab416206a97f19e6559679bb73dd60882 [diff] [blame] |
Don't pass SDValues by non-const reference unless they may be modified. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@102816 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 19169f6..a38b204 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
@@ -3685,7 +3685,8 @@ 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;