[AVR] Add release notes for 3.8
[oota-llvm.git] / lib / Analysis / VectorUtils.cpp
index 5fb517e8edb5578e08952b8a53023a7d8e7f3293..4b244ec5e1f6236a6e284690f1130cf5626b70b6 100644 (file)
@@ -324,8 +324,7 @@ Value *llvm::getStrideFromPointer(Value *Ptr, ScalarEvolution *SE, Loop *Lp) {
       if (M->getOperand(0)->getSCEVType() != scConstant)
         return nullptr;
 
-      const APInt &APStepVal =
-          cast<SCEVConstant>(M->getOperand(0))->getValue()->getValue();
+      const APInt &APStepVal = cast<SCEVConstant>(M->getOperand(0))->getAPInt();
 
       // Huge step value - give up.
       if (APStepVal.getBitWidth() > 64)