diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-10-10 07:36:45 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-10-10 07:36:45 +0000 |
commit | 7d2f2496c1d263eecdc104fd72e847a31d8695b9 (patch) | |
tree | 0856e94cc2c0479da200b426cf81c14abf96e650 /lib/Transforms/Scalar/SimplifyLibCalls.cpp | |
parent | 8a8cf9617cdc735f0425e828bb7a6f401c0cf0f6 (diff) | |
download | external_llvm-7d2f2496c1d263eecdc104fd72e847a31d8695b9.zip external_llvm-7d2f2496c1d263eecdc104fd72e847a31d8695b9.tar.gz external_llvm-7d2f2496c1d263eecdc104fd72e847a31d8695b9.tar.bz2 |
Remove the final bits of Attributes being declared in the Attribute
namespace. Use the attribute's enum value instead. No functionality change
intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165610 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar/SimplifyLibCalls.cpp')
-rw-r--r-- | lib/Transforms/Scalar/SimplifyLibCalls.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/SimplifyLibCalls.cpp b/lib/Transforms/Scalar/SimplifyLibCalls.cpp index 15625f9..73f53b7 100644 --- a/lib/Transforms/Scalar/SimplifyLibCalls.cpp +++ b/lib/Transforms/Scalar/SimplifyLibCalls.cpp @@ -636,7 +636,9 @@ 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::NoCapture); + Attributes::Builder B; + B.addAttribute(Attributes::NoCapture); + CI->addAttribute(1, Attributes::get(B)); } return 0; |