forked from OSchip/llvm-project
[DAG] TargetLowering::BuildUDIV - use APInt as const ref. NFCI.
Fixes clang-tidy warning.
This commit is contained in:
parent
7cbc5df438
commit
7d3d9fe8cd
|
@ -5257,7 +5257,7 @@ SDValue TargetLowering::BuildUDIV(SDNode *N, SelectionDAG &DAG,
|
|||
return false;
|
||||
// FIXME: We should use a narrower constant when the upper
|
||||
// bits are known to be zero.
|
||||
APInt Divisor = C->getAPIntValue();
|
||||
const APInt& Divisor = C->getAPIntValue();
|
||||
APInt::mu magics = Divisor.magicu();
|
||||
unsigned PreShift = 0, PostShift = 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue