Reapply r116831 and r116839, converting AliasAnalysis to use
[oota-llvm.git] / lib / Analysis / Loads.cpp
index 2ba1d86cdb4062441d8b4924c203d1bb98382562..b1f2cb41cd2f445c35f6f4fcb3e867efc52c4167 100644 (file)
@@ -166,7 +166,7 @@ Value *llvm::FindAvailableLoadedValue(Value *Ptr, BasicBlock *ScanBB,
   if (MaxInstsToScan == 0) MaxInstsToScan = ~0U;
 
   // If we're using alias analysis to disambiguate get the size of *Ptr.
-  unsigned AccessSize = 0;
+  uint64_t AccessSize = 0;
   if (AA) {
     const Type *AccessTy = cast<PointerType>(Ptr->getType())->getElementType();
     AccessSize = AA->getTypeStoreSize(AccessTy);