aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2022-02-25 09:59:50 +0100
committerNikita Popov <npopov@redhat.com>2022-02-25 10:01:58 +0100
commit87ebd9a36ffb547c18bb3acce2fa90f56d6c5d9d (patch)
treed666fde349f7df8ab226b3976fb0d61706089b7c /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent748bf545dc42462f74af79b58655a563e9561d22 (diff)
downloadllvm-87ebd9a36ffb547c18bb3acce2fa90f56d6c5d9d.zip
llvm-87ebd9a36ffb547c18bb3acce2fa90f56d6c5d9d.tar.gz
llvm-87ebd9a36ffb547c18bb3acce2fa90f56d6c5d9d.tar.bz2
[IR] Use CallBase::getParamElementType() (NFC)
As this method now exists on CallBase, use it rather than the one on AttributeList.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index 2547046..dee8c4d 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
@@ -4054,7 +4054,7 @@ void BitcodeReader::propagateAttributeTypes(CallBase *CB,
if (!CI.hasArg())
continue;
- if (CI.isIndirect && !CB->getAttributes().getParamElementType(ArgNo)) {
+ if (CI.isIndirect && !CB->getParamElementType(ArgNo)) {
Type *ElemTy = ArgsTys[ArgNo]->getPointerElementType();
CB->addParamAttr(
ArgNo, Attribute::get(Context, Attribute::ElementType, ElemTy));
@@ -4067,7 +4067,7 @@ void BitcodeReader::propagateAttributeTypes(CallBase *CB,
switch (CB->getIntrinsicID()) {
case Intrinsic::preserve_array_access_index:
case Intrinsic::preserve_struct_access_index:
- if (!CB->getAttributes().getParamElementType(0)) {
+ if (!CB->getParamElementType(0)) {
Type *ElTy = ArgsTys[0]->getPointerElementType();
Attribute NewAttr = Attribute::get(Context, Attribute::ElementType, ElTy);
CB->addParamAttr(0, NewAttr);