aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Analysis/VectorUtils.cpp
diff options
context:
space:
mode:
authorArthur Eubanks <aeubanks@google.com>2021-08-18 09:37:01 -0700
committerArthur Eubanks <aeubanks@google.com>2021-08-18 09:39:33 -0700
commit7557d6c896d3418216e82c0d0cf3b0708f2145bb (patch)
tree7b9fa2e26cbfc6e2edb85b5f64ce804d31f416c0 /llvm/lib/Analysis/VectorUtils.cpp
parent164e09de2e92a2fa650225b4bd9268e8c2248b23 (diff)
downloadllvm-7557d6c896d3418216e82c0d0cf3b0708f2145bb.zip
llvm-7557d6c896d3418216e82c0d0cf3b0708f2145bb.tar.gz
llvm-7557d6c896d3418216e82c0d0cf3b0708f2145bb.tar.bz2
[NFC] Cleanup calls to CallBase::getAttribute()
Diffstat (limited to 'llvm/lib/Analysis/VectorUtils.cpp')
-rw-r--r--llvm/lib/Analysis/VectorUtils.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/llvm/lib/Analysis/VectorUtils.cpp b/llvm/lib/Analysis/VectorUtils.cpp
index ce91e16..543f379 100644
--- a/llvm/lib/Analysis/VectorUtils.cpp
+++ b/llvm/lib/Analysis/VectorUtils.cpp
@@ -1352,9 +1352,7 @@ std::string VFABI::mangleTLIVectorName(StringRef VectorName,
void VFABI::getVectorVariantNames(
const CallInst &CI, SmallVectorImpl<std::string> &VariantMappings) {
- const StringRef S =
- CI.getAttribute(AttributeList::FunctionIndex, VFABI::MappingsAttrName)
- .getValueAsString();
+ const StringRef S = CI.getFnAttr(VFABI::MappingsAttrName).getValueAsString();
if (S.empty())
return;