[llvm] r251743 - [X86] Remove two const references to the return value of a constructor and just use normal object creation syntax. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 31 10:28:02 PDT 2015
Author: ctopper
Date: Sat Oct 31 12:28:02 2015
New Revision: 251743
URL: http://llvm.org/viewvc/llvm-project?rev=251743&view=rev
Log:
[X86] Remove two const references to the return value of a constructor and just use normal object creation syntax. NFC
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=251743&r1=251742&r2=251743&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Sat Oct 31 12:28:02 2015
@@ -18373,7 +18373,7 @@ static SDValue LowerShift(SDValue Op, co
SmallVector<SDValue, 8> Elts;
EVT SVT = VT.getScalarType();
unsigned SVTBits = SVT.getSizeInBits();
- const APInt &One = APInt(SVTBits, 1);
+ APInt One(SVTBits, 1);
unsigned NumElems = VT.getVectorNumElements();
for (unsigned i=0; i !=NumElems; ++i) {
@@ -18384,7 +18384,7 @@ static SDValue LowerShift(SDValue Op, co
}
ConstantSDNode *ND = cast<ConstantSDNode>(Op);
- const APInt &C = APInt(SVTBits, ND->getAPIntValue().getZExtValue());
+ APInt C(SVTBits, ND->getAPIntValue().getZExtValue());
uint64_t ShAmt = C.getZExtValue();
if (ShAmt >= SVTBits) {
Elts.push_back(DAG.getUNDEF(SVT));
More information about the llvm-commits
mailing list