aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Value.cpp
diff options
context:
space:
mode:
authorArthur Eubanks <aeubanks@google.com>2021-12-08 11:49:12 -0800
committerArthur Eubanks <aeubanks@google.com>2021-12-09 08:43:19 -0800
commit1172712f4629cabd606675a216fb2dbdc82ee910 (patch)
treefb67dcc3de7b82b942033c4194026cb241d10e0c /llvm/lib/IR/Value.cpp
parent0ec5f1e64fb2c38519bdefc85c018ed4f0a8d7c1 (diff)
downloadllvm-1172712f4629cabd606675a216fb2dbdc82ee910.zip
llvm-1172712f4629cabd606675a216fb2dbdc82ee910.tar.gz
llvm-1172712f4629cabd606675a216fb2dbdc82ee910.tar.bz2
[NFC] Replace some deprecated getAlignment() calls with getAlign()
Reviewed By: gchatelet Differential Revision: https://reviews.llvm.org/D115370
Diffstat (limited to 'llvm/lib/IR/Value.cpp')
-rw-r--r--llvm/lib/IR/Value.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Value.cpp b/llvm/lib/IR/Value.cpp
index b475c83..8741ed91 100644
--- a/llvm/lib/IR/Value.cpp
+++ b/llvm/lib/IR/Value.cpp
@@ -928,7 +928,7 @@ Align Value::getPointerAlignment(const DataLayout &DL) const {
}
llvm_unreachable("Unhandled FunctionPtrAlignType");
}
- const MaybeAlign Alignment(GO->getAlignment());
+ const MaybeAlign Alignment(GO->getAlign());
if (!Alignment) {
if (auto *GVar = dyn_cast<GlobalVariable>(GO)) {
Type *ObjectType = GVar->getValueType();