summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2013-03-02 01:20:18 +0000
committerPeter Collingbourne <peter@pcc.me.uk>2013-03-02 01:20:18 +0000
commit1b97a9c82a2b3a45fcdeb566c6ae2fc5d85fd9bb (patch)
tree03fccdfd619b0d46c85008fa400ccb1b8cd4565a /llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
parent643aa0e0dce7f2e6413b7e763f954b8fb2604360 (diff)
downloadbcm5719-llvm-1b97a9c82a2b3a45fcdeb566c6ae2fc5d85fd9bb.tar.gz
bcm5719-llvm-1b97a9c82a2b3a45fcdeb566c6ae2fc5d85fd9bb.zip
Modify {Call,Invoke}Inst::addAttribute to take an AttrKind.
llvm-svn: 176397
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp b/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
index 9b39bf40c88..8ff87eee24e 100644
--- a/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
@@ -798,8 +798,7 @@ struct StrToOpt : public LibCallOptimization {
if (isa<ConstantPointerNull>(EndPtr)) {
// With a null EndPtr, this function won't capture the main argument.
// It would be readonly too, except that it still may write to errno.
- CI->addAttribute(1, Attribute::get(Callee->getContext(),
- Attribute::NoCapture));
+ CI->addAttribute(1, Attribute::NoCapture);
}
return 0;
OpenPOWER on IntegriCloud