diff options
author | Arthur Eubanks <aeubanks@google.com> | 2021-08-17 20:25:16 -0700 |
---|---|---|
committer | Arthur Eubanks <aeubanks@google.com> | 2021-08-17 21:05:41 -0700 |
commit | 3f4d00bc3b514d3218089fce15457457fc3312c3 (patch) | |
tree | 9f545ececa0fc35c7dcc5affff27b8f20044b95a /llvm/lib/Transforms/Utils/ModuleUtils.cpp | |
parent | de0ae9e89ec437d9f58e4b2da04d210c161854a3 (diff) | |
download | llvm-3f4d00bc3b514d3218089fce15457457fc3312c3.zip llvm-3f4d00bc3b514d3218089fce15457457fc3312c3.tar.gz llvm-3f4d00bc3b514d3218089fce15457457fc3312c3.tar.bz2 |
[NFC] More get/removeAttribute() cleanup
Diffstat (limited to 'llvm/lib/Transforms/Utils/ModuleUtils.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/ModuleUtils.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/ModuleUtils.cpp b/llvm/lib/Transforms/Utils/ModuleUtils.cpp index aa95204..ab85879 100644 --- a/llvm/lib/Transforms/Utils/ModuleUtils.cpp +++ b/llvm/lib/Transforms/Utils/ModuleUtils.cpp @@ -297,7 +297,6 @@ void VFABI::setVectorVariantNames( "vector function declaration is missing."); } #endif - CI->addAttribute( - AttributeList::FunctionIndex, + CI->addFnAttr( Attribute::get(M->getContext(), MappingsAttrName, Buffer.str())); } |