diff options
-rw-r--r-- | lib/Sema/SemaAttr.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Sema/SemaAttr.cpp b/lib/Sema/SemaAttr.cpp index a799169f23..1bf8444c42 100644 --- a/lib/Sema/SemaAttr.cpp +++ b/lib/Sema/SemaAttr.cpp @@ -206,5 +206,6 @@ void Sema::ActOnPragmaUnused(ExprTy **Exprs, unsigned NumExprs, for (unsigned i = 0; i < NumExprs; ++i) { DeclRefExpr *DR = (DeclRefExpr*) Exprs[i]; DR->getDecl()->addAttr(::new (Context) UnusedAttr()); + DR->Destroy(Context); } } |