[SelectionDAG] Const-correct the DemandedMask argument to one of the overloads of SimplifyDemandedBits. NFC

llvm-svn: 315641
This commit is contained in:
Craig Topper 2017-10-12 23:46:05 +00:00
parent 5323550e9a
commit 0e8211ea57
2 changed files with 2 additions and 2 deletions

View File

@ -2654,7 +2654,7 @@ public:
bool AssumeSingleUse = false) const;
/// Helper wrapper around SimplifyDemandedBits
bool SimplifyDemandedBits(SDValue Op, APInt &DemandedMask,
bool SimplifyDemandedBits(SDValue Op, const APInt &DemandedMask,
DAGCombinerInfo &DCI) const;
/// Determine which of the bits specified in Mask are known to be either zero

View File

@ -479,7 +479,7 @@ TargetLowering::SimplifyDemandedBits(SDNode *User, unsigned OpIdx,
return true;
}
bool TargetLowering::SimplifyDemandedBits(SDValue Op, APInt &DemandedMask,
bool TargetLowering::SimplifyDemandedBits(SDValue Op, const APInt &DemandedMask,
DAGCombinerInfo &DCI) const {
SelectionDAG &DAG = DCI.DAG;