aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2023-01-11 16:34:43 +0000
committerGuillaume Chatelet <gchatelet@google.com>2023-01-11 16:36:39 +0000
commit48f5d77eeed4d7453d199c4b4ac16c1bbfbdbddf (patch)
tree86f5b6a24a773b4632211ba76f22c3b59823e9d9 /llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
parent0d9afee3d159f5b7cdac7637808f3e25ff16a536 (diff)
downloadllvm-48f5d77eeed4d7453d199c4b4ac16c1bbfbdbddf.zip
llvm-48f5d77eeed4d7453d199c4b4ac16c1bbfbdbddf.tar.gz
llvm-48f5d77eeed4d7453d199c4b4ac16c1bbfbdbddf.tar.bz2
[NFC] Use TypeSize::getKnownMinValue() instead of TypeSize::getKnownMinSize()
This change is one of a series to implement the discussion from https://reviews.llvm.org/D141134.
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp b/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
index 3e59d0d..847a0291 100644
--- a/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
@@ -150,7 +150,7 @@ void FunctionLoweringInfo::set(const Function &fn, MachineFunction &mf,
(TFI->isStackRealignable() || (Alignment <= StackAlign))) {
const ConstantInt *CUI = cast<ConstantInt>(AI->getArraySize());
uint64_t TySize =
- MF->getDataLayout().getTypeAllocSize(Ty).getKnownMinSize();
+ MF->getDataLayout().getTypeAllocSize(Ty).getKnownMinValue();
TySize *= CUI->getZExtValue(); // Get total allocated size.
if (TySize == 0) TySize = 1; // Don't create zero-sized stack objects.