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
This commit is contained in:
Dan Gohman 2010-05-01 00:33:16 +00:00
parent b55c8bed9d
commit 5d11ea39f7
2 changed files with 3 additions and 2 deletions

View 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;

View 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