diff options
author | Christopher Tetreault <ctetreau@quicinc.com> | 2020-04-13 16:00:10 -0700 |
---|---|---|
committer | Christopher Tetreault <ctetreau@quicinc.com> | 2020-04-13 16:24:18 -0700 |
commit | eab73dfed9bc32e9a3c8508c03ae5dfc622534c8 (patch) | |
tree | 09df04779bb28a047f38e957d1d4c309e128768d /llvm/lib/IR/Function.cpp | |
parent | 5f9166525b7287c79e25ad6fc960d5574ecd6b22 (diff) | |
download | llvm-eab73dfed9bc32e9a3c8508c03ae5dfc622534c8.zip llvm-eab73dfed9bc32e9a3c8508c03ae5dfc622534c8.tar.gz llvm-eab73dfed9bc32e9a3c8508c03ae5dfc622534c8.tar.bz2 |
[SVE] Change return type of getNumElements to unsigned
Reviewers: efriedma, sdesmalen, craig.topper, dexonsmith
Reviewed By: efriedma, sdesmalen
Subscribers: tschuett, hiraditya, rkruppe, psnobl, mehdi_amini, rriddle, jpienaar, burmako, shauheen, antiagainst, nicolasvasilache, arpith-jacob, mgester, lucyrfox, aartbik, liufengdb, Joonsoo, grosul1, frgossen, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D77763
Diffstat (limited to 'llvm/lib/IR/Function.cpp')
-rw-r--r-- | llvm/lib/IR/Function.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/IR/Function.cpp b/llvm/lib/IR/Function.cpp index 7791d26..ec390b3 100644 --- a/llvm/lib/IR/Function.cpp +++ b/llvm/lib/IR/Function.cpp @@ -1075,8 +1075,7 @@ static Type *DecodeFixedType(ArrayRef<Intrinsic::IITDescriptor> &Infos, return Tys[D.getOverloadArgNumber()]; case IITDescriptor::ScalableVecArgument: { auto *Ty = cast<VectorType>(DecodeFixedType(Infos, Tys, Context)); - return VectorType::get(Ty->getElementType(), - {(unsigned)Ty->getNumElements(), true}); + return VectorType::get(Ty->getElementType(), {Ty->getNumElements(), true}); } } llvm_unreachable("unhandled"); |