diff options
author | Guillaume Chatelet <gchatelet@google.com> | 2023-01-13 15:05:24 +0000 |
---|---|---|
committer | Guillaume Chatelet <gchatelet@google.com> | 2023-01-13 15:05:24 +0000 |
commit | 26bd6476c61f08fc8c01895caa02b938d6a37221 (patch) | |
tree | 6ad58e6c4c3a7582e87877dd8679408d9482dfb9 /llvm/lib/Transforms/Utils/InlineFunction.cpp | |
parent | bafa145c0eb63ac0c7b662bd646aa2c73cbc07b7 (diff) | |
download | llvm-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.cpp | 2 |
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 |