[cfe-commits] r163643 - /cfe/trunk/lib/Sema/SemaDeclAttr.cpp
DeLesley Hutchins
delesley at google.com
Tue Sep 11 11:32:12 PDT 2012
Author: delesley
Date: Tue Sep 11 13:32:12 2012
New Revision: 163643
URL: http://llvm.org/viewvc/llvm-project?rev=163643&view=rev
Log:
Fix warning from r163642
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=163643&r1=163642&r2=163643&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaDeclAttr.cpp (original)
+++ cfe/trunk/lib/Sema/SemaDeclAttr.cpp Tue Sep 11 13:32:12 2012
@@ -864,7 +864,6 @@
if (!checkAttributeNumArgs(S, Attr, 1))
return;
- Expr *Arg = Attr.getArg(0);
if (!isa<FunctionDecl>(D) && !isa<FunctionTemplateDecl>(D)) {
S.Diag(Attr.getLoc(), diag::warn_thread_attribute_wrong_decl_type)
More information about the cfe-commits
mailing list