diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2013-03-02 01:20:18 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2013-03-02 01:20:18 +0000 |
commit | 328d1b65002e68ae65ffef05eed19122cbf721f5 (patch) | |
tree | 5963a4d623effd507c275c209a6d4e57dd77f10b /lib/Transforms/Utils | |
parent | e2abe051745efbddc58402bd6240aa91e821fe8f (diff) |
Modify {Call,Invoke}Inst::addAttribute to take an AttrKind.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176397 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils')
-rw-r--r-- | lib/Transforms/Utils/SimplifyLibCalls.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Transforms/Utils/SimplifyLibCalls.cpp b/lib/Transforms/Utils/SimplifyLibCalls.cpp index 9b39bf40c8..8ff87eee24 100644 --- a/lib/Transforms/Utils/SimplifyLibCalls.cpp +++ b/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; |