diff options
author | Bill Wendling <isanbard@gmail.com> | 2012-10-15 20:35:56 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2012-10-15 20:35:56 +0000 |
commit | 50d27849f6e2e1f5a19364b9efbc39ef743d8040 (patch) | |
tree | 0a526850436e052c1bed5c9184b0fba8436a7265 /llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp | |
parent | 6e5f49d7b7cc08b2dd8c0d81f6d1da77198fae89 (diff) | |
download | bcm5719-llvm-50d27849f6e2e1f5a19364b9efbc39ef743d8040.tar.gz bcm5719-llvm-50d27849f6e2e1f5a19364b9efbc39ef743d8040.zip |
Move the Attributes::Builder outside of the Attributes class and into its own class named AttrBuilder. No functionality change.
llvm-svn: 165960
Diffstat (limited to 'llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp b/llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp index e751750986f..0223d39ab3b 100644 --- a/llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp +++ b/llvm/lib/Transforms/Scalar/SimplifyLibCalls.cpp @@ -348,7 +348,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. - Attributes::Builder B; + AttrBuilder B; B.addAttribute(Attributes::NoCapture); CI->addAttribute(1, Attributes::get(Callee->getContext(), B)); } |