[cfe-commits] r121014 - /cfe/trunk/lib/Sema/SemaDeclAttr.cpp
Argyrios Kyrtzidis
akyrtzi at gmail.com
Mon Dec 6 09:51:53 PST 2010
Author: akirtzidis
Date: Mon Dec 6 11:51:53 2010
New Revision: 121014
URL: http://llvm.org/viewvc/llvm-project?rev=121014&view=rev
Log:
Use Sema's MarkDeclarationReferenced, which takes care of templates, instead of calling Decl's setUsed directly.
Thanks to John for the hint!
Modified:
cfe/trunk/lib/Sema/SemaDeclAttr.cpp
Modified: cfe/trunk/lib/Sema/SemaDeclAttr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaDeclAttr.cpp?rev=121014&r1=121013&r2=121014&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclAttr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclAttr.cpp Mon Dec 6 11:51:53 2010
@@ -1452,7 +1452,7 @@
}
d->addAttr(::new (S.Context) CleanupAttr(Attr.getLoc(), S.Context, FD));
- FD->setUsed();
+ S.MarkDeclarationReferenced(Attr.getParameterLoc(), FD);
}
/// Handle __attribute__((format_arg((idx)))) attribute based on
More information about the cfe-commits
mailing list