diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-12-04 01:12:11 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-12-04 01:12:11 +0000 |
commit | ae3038c5e8bfce47337e83aeb253256633fbb701 (patch) | |
tree | 9118574fa9722ba6688cbc03a4ac876bddcae4e3 /lib/Sema/SemaDeclAttr.cpp | |
parent | 74b2756bc1f1f5f7c189996fe7e4cd3efef70263 (diff) |
Mark functions referenced by 'cleanup' attribute as used. Fixes rdar://8728293
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120872 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema/SemaDeclAttr.cpp')
-rw-r--r-- | lib/Sema/SemaDeclAttr.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Sema/SemaDeclAttr.cpp b/lib/Sema/SemaDeclAttr.cpp index ad0313d976..c429fd37dd 100644 --- a/lib/Sema/SemaDeclAttr.cpp +++ b/lib/Sema/SemaDeclAttr.cpp @@ -1450,6 +1450,7 @@ static void HandleCleanupAttr(Decl *d, const AttributeList &Attr, Sema &S) { } d->addAttr(::new (S.Context) CleanupAttr(Attr.getLoc(), S.Context, FD)); + FD->setUsed(); } /// Handle __attribute__((format_arg((idx)))) attribute based on |