diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2021-09-10 18:15:40 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2021-09-10 18:16:22 +0200 |
commit | d34d2bbe5d88c1b652887b72600791f4f9435f4a (patch) | |
tree | b1874a1859007b75b7112ca27009c7e24a61939c /llvm/lib/IR/Function.cpp | |
parent | 1b736bda3bb5acd2874e862d9fd0cec335dd899b (diff) | |
download | llvm-d34d2bbe5d88c1b652887b72600791f4f9435f4a.zip llvm-d34d2bbe5d88c1b652887b72600791f4f9435f4a.tar.gz llvm-d34d2bbe5d88c1b652887b72600791f4f9435f4a.tar.bz2 |
[IR] Remove unused parameter (NFC)
Diffstat (limited to 'llvm/lib/IR/Function.cpp')
-rw-r--r-- | llvm/lib/IR/Function.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/IR/Function.cpp b/llvm/lib/IR/Function.cpp index ef3bc1ce..e8fbcfb 100644 --- a/llvm/lib/IR/Function.cpp +++ b/llvm/lib/IR/Function.cpp @@ -158,7 +158,7 @@ bool Argument::hasPointeeInMemoryValueAttr() const { /// For a byval, sret, inalloca, or preallocated parameter, get the in-memory /// parameter type. -static Type *getMemoryParamAllocType(AttributeSet ParamAttrs, Type *ArgTy) { +static Type *getMemoryParamAllocType(AttributeSet ParamAttrs) { // FIXME: All the type carrying attributes are mutually exclusive, so there // should be a single query to get the stored type that handles any of them. if (Type *ByValTy = ParamAttrs.getByValType()) @@ -178,7 +178,7 @@ static Type *getMemoryParamAllocType(AttributeSet ParamAttrs, Type *ArgTy) { uint64_t Argument::getPassPointeeByValueCopySize(const DataLayout &DL) const { AttributeSet ParamAttrs = getParent()->getAttributes().getParamAttrs(getArgNo()); - if (Type *MemTy = getMemoryParamAllocType(ParamAttrs, getType())) + if (Type *MemTy = getMemoryParamAllocType(ParamAttrs)) return DL.getTypeAllocSize(MemTy); return 0; } @@ -186,7 +186,7 @@ uint64_t Argument::getPassPointeeByValueCopySize(const DataLayout &DL) const { Type *Argument::getPointeeInMemoryValueType() const { AttributeSet ParamAttrs = getParent()->getAttributes().getParamAttrs(getArgNo()); - return getMemoryParamAllocType(ParamAttrs, getType()); + return getMemoryParamAllocType(ParamAttrs); } unsigned Argument::getParamAlignment() const { |