diff options
author | George Burgess IV <george.burgess.iv@gmail.com> | 2018-12-23 03:10:56 +0000 |
---|---|---|
committer | George Burgess IV <george.burgess.iv@gmail.com> | 2018-12-23 03:10:56 +0000 |
commit | 8c5413f3f71be700772cb8a2f7028d0eb1e3dd51 (patch) | |
tree | 79db8ae352008f5849d741dd2381d4fe2eeba192 /llvm/lib/Analysis/Loads.cpp | |
parent | 1329cf1791d48fa6559f4eec34ac3bab2b5d34c8 (diff) | |
download | bcm5719-llvm-8c5413f3f71be700772cb8a2f7028d0eb1e3dd51.tar.gz bcm5719-llvm-8c5413f3f71be700772cb8a2f7028d0eb1e3dd51.zip |
[Loads] Use LocationSize instead of ints; NFC
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.
llvm-svn: 350016
Diffstat (limited to 'llvm/lib/Analysis/Loads.cpp')
-rw-r--r-- | llvm/lib/Analysis/Loads.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/Loads.cpp b/llvm/lib/Analysis/Loads.cpp index d319d4c249d..cd986dcfde8 100644 --- a/llvm/lib/Analysis/Loads.cpp +++ b/llvm/lib/Analysis/Loads.cpp @@ -345,7 +345,7 @@ Value *llvm::FindAvailablePtrLoadStore(Value *Ptr, Type *AccessTy, 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(); |