Keeping these patches super small so they're easily post-commit
verifiable, as requested in D44748.
This tries to find literal loads/stores of the given type, so this has
to be precise.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350016
91177308-0d34-0410-b5e6-
96231b3b80d8
const DataLayout &DL = ScanBB->getModule()->getDataLayout();
// Try to get the store size for the type.
- uint64_t AccessSize = DL.getTypeStoreSize(AccessTy);
+ auto AccessSize = LocationSize::precise(DL.getTypeStoreSize(AccessTy));
Value *StrippedPtr = Ptr->stripPointerCasts();