Merge isObjectPointerWithTrustworthySize with getPointerSize. Use it when
[oota-llvm.git] / lib / Transforms / Utils / SimplifyIndVar.cpp
index 5ee1eb189799faefc37e15146d51576392d4936c..76289c055b904317ae04bcd763fcb3623a058a96 100644 (file)
@@ -221,8 +221,7 @@ void SimplifyIndvar::eliminateIVRemainder(BinaryOperator *Rem,
       return;
 
     ICmpInst *ICmp = new ICmpInst(Rem, ICmpInst::ICMP_EQ,
-                                  Rem->getOperand(0), Rem->getOperand(1),
-                                  "tmp");
+                                  Rem->getOperand(0), Rem->getOperand(1));
     SelectInst *Sel =
       SelectInst::Create(ICmp,
                          ConstantInt::get(Rem->getType(), 0),