]> granicus.if.org Git - clang/commitdiff
Fix warning from r163642
authorDeLesley Hutchins <delesley@google.com>
Tue, 11 Sep 2012 18:32:12 +0000 (18:32 +0000)
committerDeLesley Hutchins <delesley@google.com>
Tue, 11 Sep 2012 18:32:12 +0000 (18:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@163643 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Sema/SemaDeclAttr.cpp

index 3b0820a5eb3600c999aa33c2a295a672112d0554..ae394d78b9616917fdf4b5d1b6ab8e12d5a2530a 100644 (file)
@@ -864,7 +864,6 @@ static void handleLockReturnedAttr(Sema &S, Decl *D,
 
   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)