aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorArthur Eubanks <aeubanks@google.com>2021-08-17 20:25:16 -0700
committerArthur Eubanks <aeubanks@google.com>2021-08-17 21:05:41 -0700
commit3f4d00bc3b514d3218089fce15457457fc3312c3 (patch)
tree9f545ececa0fc35c7dcc5affff27b8f20044b95a /llvm/lib/Transforms/Utils/Local.cpp
parentde0ae9e89ec437d9f58e4b2da04d210c161854a3 (diff)
downloadllvm-3f4d00bc3b514d3218089fce15457457fc3312c3.zip
llvm-3f4d00bc3b514d3218089fce15457457fc3312c3.tar.gz
llvm-3f4d00bc3b514d3218089fce15457457fc3312c3.tar.bz2
[NFC] More get/removeAttribute() cleanup
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/Local.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp
index 8e19a48..862e3c3 100644
--- a/llvm/lib/Transforms/Utils/Local.cpp
+++ b/llvm/lib/Transforms/Utils/Local.cpp
@@ -3247,7 +3247,7 @@ void llvm::maybeMarkSanitizerLibraryCallNoBuiltin(
if (F && !F->hasLocalLinkage() && F->hasName() &&
TLI->getLibFunc(F->getName(), Func) && TLI->hasOptimizedCodeGen(Func) &&
!F->doesNotAccessMemory())
- CI->addAttribute(AttributeList::FunctionIndex, Attribute::NoBuiltin);
+ CI->addFnAttr(Attribute::NoBuiltin);
}
bool llvm::canReplaceOperandWithVariable(const Instruction *I, unsigned OpIdx) {