aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/InlineFunction.cpp
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2023-01-13 15:05:24 +0000
committerGuillaume Chatelet <gchatelet@google.com>2023-01-13 15:05:24 +0000
commit26bd6476c61f08fc8c01895caa02b938d6a37221 (patch)
tree6ad58e6c4c3a7582e87877dd8679408d9482dfb9 /llvm/lib/Transforms/Utils/InlineFunction.cpp
parentbafa145c0eb63ac0c7b662bd646aa2c73cbc07b7 (diff)
downloadllvm-26bd6476c61f08fc8c01895caa02b938d6a37221.zip
llvm-26bd6476c61f08fc8c01895caa02b938d6a37221.tar.gz
llvm-26bd6476c61f08fc8c01895caa02b938d6a37221.tar.bz2
Deprecate DataLayout::getPrefTypeAlignment
Diffstat (limited to 'llvm/lib/Transforms/Utils/InlineFunction.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/InlineFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp
index e80d388..ceb2f52 100644
--- a/llvm/lib/Transforms/Utils/InlineFunction.cpp
+++ b/llvm/lib/Transforms/Utils/InlineFunction.cpp
@@ -1583,7 +1583,7 @@ static Value *HandleByValArgument(Type *ByValType, Value *Arg,
}
// Create the alloca. If we have DataLayout, use nice alignment.
- Align Alignment(DL.getPrefTypeAlignment(ByValType));
+ Align Alignment = DL.getPrefTypeAlign(ByValType);
// If the byval had an alignment specified, we *must* use at least that
// alignment, as it is required by the byval argument (and uses of the