aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/Value.cpp
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2020-06-29 11:24:36 +0000
committerGuillaume Chatelet <gchatelet@google.com>2020-06-29 11:24:36 +0000
commit368a5e3a666ff38432be538370c46ff800fface1 (patch)
tree3b6b1b3586051f5fe8f5358d0b0b51235097796d /llvm/lib/IR/Value.cpp
parent3521ecf1f8a3cf5e4811f93a9a809fc722462bbf (diff)
downloadllvm-368a5e3a666ff38432be538370c46ff800fface1.zip
llvm-368a5e3a666ff38432be538370c46ff800fface1.tar.gz
llvm-368a5e3a666ff38432be538370c46ff800fface1.tar.bz2
[Alignment][NFC] migrate DataLayout::getPreferredAlignment
This patch is part of a series to introduce an Alignment type. See this thread for context: http://lists.llvm.org/pipermail/llvm-dev/2019-July/133851.html See this patch for the introduction of the type: https://reviews.llvm.org/D64790 Differential Revision: https://reviews.llvm.org/D82752
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 e264eb1..cfb2bcd 100644
--- a/llvm/lib/IR/Value.cpp
+++ b/llvm/lib/IR/Value.cpp
@@ -768,7 +768,7 @@ Align Value::getPointerAlignment(const DataLayout &DL) const {
// it the preferred alignment. Otherwise, we have to assume that it
// may only have the minimum ABI alignment.
if (GVar->isStrongDefinitionForLinker())
- return Align(DL.getPreferredAlignment(GVar));
+ return DL.getPreferredAlign(GVar);
else
return DL.getABITypeAlign(ObjectType);
}