aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/ValueTracking.cpp
diff options
context:
space:
mode:
authorArthur Eubanks <aeubanks@google.com>2021-12-09 13:52:44 -0800
committerArthur Eubanks <aeubanks@google.com>2021-12-15 14:40:57 -0800
commit5a81a60391c3b4bb734f87eeef5c87a44f174bfe (patch)
tree7c01b611c1a485d0b58ca909700ea875828f3ec7 /llvm/lib/Analysis/ValueTracking.cpp
parentd5583366baa734e2d59946743086e0aec7cae431 (diff)
downloadllvm-5a81a60391c3b4bb734f87eeef5c87a44f174bfe.zip
llvm-5a81a60391c3b4bb734f87eeef5c87a44f174bfe.tar.gz
llvm-5a81a60391c3b4bb734f87eeef5c87a44f174bfe.tar.bz2
[NFC] Remove more calls to getAlignment()
These are deprecated and should be replaced with getAlign(). Some of these asserts don't do anything because Load/Store/AllocaInst never have a 0 align value.
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
-rw-r--r--llvm/lib/Analysis/ValueTracking.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp
index 1ed2478..2585961 100644
--- a/llvm/lib/Analysis/ValueTracking.cpp
+++ b/llvm/lib/Analysis/ValueTracking.cpp
@@ -4678,8 +4678,8 @@ bool llvm::isSafeToSpeculativelyExecute(const Value *V,
return false;
const DataLayout &DL = LI->getModule()->getDataLayout();
return isDereferenceableAndAlignedPointer(
- LI->getPointerOperand(), LI->getType(), MaybeAlign(LI->getAlignment()),
- DL, CtxI, DT, TLI);
+ LI->getPointerOperand(), LI->getType(), MaybeAlign(LI->getAlign()), DL,
+ CtxI, DT, TLI);
}
case Instruction::Call: {
auto *CI = cast<const CallInst>(Inst);