From e3b557809604d036af6e00c60f012c2025b59a5e Mon Sep 17 00:00:00 2001 From: Dimitry Andric Date: Sat, 11 Feb 2023 13:38:04 +0100 Subject: Vendor import of llvm-project main llvmorg-16-init-18548-gb0daacf58f41, the last commit before the upstream release/17.x branch was created. --- llvm/lib/CodeGen/Analysis.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'llvm/lib/CodeGen/Analysis.cpp') diff --git a/llvm/lib/CodeGen/Analysis.cpp b/llvm/lib/CodeGen/Analysis.cpp index f5dbaccfcad5..b9579441a0ba 100644 --- a/llvm/lib/CodeGen/Analysis.cpp +++ b/llvm/lib/CodeGen/Analysis.cpp @@ -319,8 +319,9 @@ static const Value *getNoopInput(const Value *V, NoopInput = Op; } else if (isa(I) && TLI.allowTruncateForTailCall(Op->getType(), I->getType())) { - DataBits = std::min((uint64_t)DataBits, - I->getType()->getPrimitiveSizeInBits().getFixedSize()); + DataBits = + std::min((uint64_t)DataBits, + I->getType()->getPrimitiveSizeInBits().getFixedValue()); NoopInput = Op; } else if (auto *CB = dyn_cast(I)) { const Value *ReturnedOp = CB->getReturnedArgOperand(); -- cgit v1.2.3