r187975 - Remove unused variable. No functionality change.

Benjamin Kramer benny.kra at googlemail.com
Thu Aug 8 04:08:26 PDT 2013


Author: d0k
Date: Thu Aug  8 06:08:26 2013
New Revision: 187975

URL: http://llvm.org/viewvc/llvm-project?rev=187975&view=rev
Log:
Remove unused variable. No functionality change.

Modified:
    cfe/trunk/lib/Sema/SemaChecking.cpp

Modified: cfe/trunk/lib/Sema/SemaChecking.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/SemaChecking.cpp?rev=187975&r1=187974&r2=187975&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/SemaChecking.cpp (original)
+++ cfe/trunk/lib/Sema/SemaChecking.cpp Thu Aug  8 06:08:26 2013
@@ -714,17 +714,15 @@ void Sema::checkCall(NamedDecl *FDecl,
     return;
 
   // Printf and scanf checking.
-  bool HandledFormatString = false;
   llvm::SmallBitVector CheckedVarArgs;
   if (FDecl) {
+    CheckedVarArgs.resize(Args.size());
     for (specific_attr_iterator<FormatAttr>
-           I = FDecl->specific_attr_begin<FormatAttr>(),
-           E = FDecl->specific_attr_end<FormatAttr>(); I != E ; ++I) {
-      CheckedVarArgs.resize(Args.size());
-      if (CheckFormatArguments(*I, Args, IsMemberFunction, CallType, Loc,
-                               Range, CheckedVarArgs))
-        HandledFormatString = true;
-    }
+             I = FDecl->specific_attr_begin<FormatAttr>(),
+             E = FDecl->specific_attr_end<FormatAttr>();
+         I != E; ++I)
+      CheckFormatArguments(*I, Args, IsMemberFunction, CallType, Loc, Range,
+                           CheckedVarArgs);
   }
 
   // Refuse POD arguments that weren't caught by the format string





More information about the cfe-commits mailing list