commit | 45a3c05640b1b08e7f7f69f633f899fd0e792f3c | [log] [tgz] |
---|---|---|
author | Ted Kremenek <kremenek@apple.com> | Mon Mar 23 22:50:47 2009 +0000 |
committer | Ted Kremenek <kremenek@apple.com> | Mon Mar 23 22:50:47 2009 +0000 |
tree | 0986946c76056437bd52b979f7457e48e4884af2 | |
parent | 632d1ece2715b1c8a0c99e1b8b487f4c148c89d5 [diff] [blame] |
Deallocate 'DeclRefExpr's in correctly formed '#pragma unused' git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67573 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Sema/SemaAttr.cpp b/lib/Sema/SemaAttr.cpp index a799169..1bf8444 100644 --- a/lib/Sema/SemaAttr.cpp +++ b/lib/Sema/SemaAttr.cpp
@@ -206,5 +206,6 @@ for (unsigned i = 0; i < NumExprs; ++i) { DeclRefExpr *DR = (DeclRefExpr*) Exprs[i]; DR->getDecl()->addAttr(::new (Context) UnusedAttr()); + DR->Destroy(Context); } }