diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-06-18 16:11:24 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-06-18 16:11:24 +0000 |
commit | 78bd61f6613196207adcfe48d59b2410882df1b8 (patch) | |
tree | e2524bdcd97b54a68d08ced81985b50537ad400f /clang/lib/Sema/SemaAttr.cpp | |
parent | 0fd4eaef3038694dc25b3c13ad21d8ed5b196f50 (diff) | |
download | bcm5719-llvm-78bd61f6613196207adcfe48d59b2410882df1b8.tar.gz bcm5719-llvm-78bd61f6613196207adcfe48d59b2410882df1b8.zip |
Move the static DeclAttrs map into ASTContext. Fixes <rdar://problem/6983177>.
llvm-svn: 73702
Diffstat (limited to 'clang/lib/Sema/SemaAttr.cpp')
-rw-r--r-- | clang/lib/Sema/SemaAttr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Sema/SemaAttr.cpp b/clang/lib/Sema/SemaAttr.cpp index 1bf8444c42b..cbfa56a6911 100644 --- a/clang/lib/Sema/SemaAttr.cpp +++ b/clang/lib/Sema/SemaAttr.cpp @@ -205,7 +205,7 @@ void Sema::ActOnPragmaUnused(ExprTy **Exprs, unsigned NumExprs, // Otherwise, add the 'unused' attribute to each referenced declaration. for (unsigned i = 0; i < NumExprs; ++i) { DeclRefExpr *DR = (DeclRefExpr*) Exprs[i]; - DR->getDecl()->addAttr(::new (Context) UnusedAttr()); + DR->getDecl()->addAttr(Context, ::new (Context) UnusedAttr()); DR->Destroy(Context); } } |