aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/DataLayout.cpp
diff options
context:
space:
mode:
authorArthur Eubanks <aeubanks@google.com>2021-10-06 10:21:17 -0700
committerArthur Eubanks <aeubanks@google.com>2021-10-06 10:21:35 -0700
commit72cf8b60445441635745ee65ff0c1f9c1a4418fe (patch)
treed7206cd9a3f2cbaa0fa6d6ec387eb082412c90ca /llvm/lib/IR/DataLayout.cpp
parent2130117f92e51df73ac8c4b7e37f7f89178a89f2 (diff)
downloadllvm-72cf8b60445441635745ee65ff0c1f9c1a4418fe.zip
llvm-72cf8b60445441635745ee65ff0c1f9c1a4418fe.tar.gz
llvm-72cf8b60445441635745ee65ff0c1f9c1a4418fe.tar.bz2
Revert "[IR] Increase max alignment to 4GB"
This reverts commit df84c1fe78130a86445d57563dea742e1b85156a. Breaks some bots
Diffstat (limited to 'llvm/lib/IR/DataLayout.cpp')
-rw-r--r--llvm/lib/IR/DataLayout.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/IR/DataLayout.cpp b/llvm/lib/IR/DataLayout.cpp
index e50423d..d2bdd2a 100644
--- a/llvm/lib/IR/DataLayout.cpp
+++ b/llvm/lib/IR/DataLayout.cpp
@@ -819,7 +819,7 @@ Align DataLayout::getAlignment(Type *Ty, bool abi_or_pref) const {
}
/// TODO: Remove this function once the transition to Align is over.
-uint64_t DataLayout::getABITypeAlignment(Type *Ty) const {
+unsigned DataLayout::getABITypeAlignment(Type *Ty) const {
return getABITypeAlign(Ty).value();
}
@@ -828,7 +828,7 @@ Align DataLayout::getABITypeAlign(Type *Ty) const {
}
/// TODO: Remove this function once the transition to Align is over.
-uint64_t DataLayout::getPrefTypeAlignment(Type *Ty) const {
+unsigned DataLayout::getPrefTypeAlignment(Type *Ty) const {
return getPrefTypeAlign(Ty).value();
}