mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-18 10:31:57 +00:00
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:
parent
b55c8bed9d
commit
5d11ea39f7
@ -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;
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user