commit | 5d11ea39f7f78169efdc4a62fd924e8f0661ca55 | [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 | b55c8bed9d0f3eaa454a657746d8ec11aae9dea3 [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;