aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/InlineFunction.cpp
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2023-01-11 16:48:35 +0000
committerGuillaume Chatelet <gchatelet@google.com>2023-01-11 16:49:38 +0000
commit8fd5558b29761aec91143129cb23c90581a944e9 (patch)
tree1c6ba9d85929cfe1713de88c4bef61327c6c158e /llvm/lib/Transforms/Utils/InlineFunction.cpp
parent56ff9168611b98c372af03f7722ef23c3e6a93ed (diff)
downloadllvm-8fd5558b29761aec91143129cb23c90581a944e9.zip
llvm-8fd5558b29761aec91143129cb23c90581a944e9.tar.gz
llvm-8fd5558b29761aec91143129cb23c90581a944e9.tar.bz2
[NFC] Use TypeSize::geFixedValue() instead of TypeSize::getFixedSize()
This change is one of a series to implement the discussion from https://reviews.llvm.org/D141134.
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 6aaaa33c..e80d388 100644
--- a/llvm/lib/Transforms/Utils/InlineFunction.cpp
+++ b/llvm/lib/Transforms/Utils/InlineFunction.cpp
@@ -2504,7 +2504,7 @@ llvm::InlineResult llvm::InlineFunction(CallBase &CB, InlineFunctionInfo &IFI,
if (!AllocaTypeSize.isScalable() &&
AllocaArraySize != std::numeric_limits<uint64_t>::max() &&
std::numeric_limits<uint64_t>::max() / AllocaArraySize >=
- AllocaTypeSize.getFixedSize()) {
+ AllocaTypeSize.getFixedValue()) {
AllocaSize = ConstantInt::get(Type::getInt64Ty(AI->getContext()),
AllocaArraySize * AllocaTypeSize);
}