aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/NaCl/ExpandTls.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Transforms/NaCl/ExpandTls.cpp')
-rw-r--r--lib/Transforms/NaCl/ExpandTls.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Transforms/NaCl/ExpandTls.cpp b/lib/Transforms/NaCl/ExpandTls.cpp
index 065226fedd..929b2e0a15 100644
--- a/lib/Transforms/NaCl/ExpandTls.cpp
+++ b/lib/Transforms/NaCl/ExpandTls.cpp
@@ -239,9 +239,8 @@ static void rewriteTlsVars(Module &M, std::vector<VarInfo> *TlsVars,
AttrBuilder B;
B.addAttribute(Attribute::ReadOnly);
B.addAttribute(Attribute::NoUnwind);
- AttributeSet ReadTpAttrs = AttributeSet().addAttr(
- M.getContext(), AttributeSet::FunctionIndex,
- Attribute::get(M.getContext(), B));
+ AttributeSet ReadTpAttrs = AttributeSet::get(
+ M.getContext(), AttributeSet::FunctionIndex, B);
Constant *ReadTpFunc = M.getOrInsertTargetIntrinsic("llvm.nacl.read.tp",
ReadTpType,
ReadTpAttrs);