]> granicus.if.org Git - clang/commitdiff
Remove unused-but-set variable.
authorBenjamin Kramer <benny.kra@googlemail.com>
Tue, 13 Mar 2012 17:05:43 +0000 (17:05 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Tue, 13 Mar 2012 17:05:43 +0000 (17:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152633 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Edit/RewriteObjCFoundationAPI.cpp

index 7cff6afeae26e7be6e3314f815a1b99d746be9ff..24a0db187557c9f990eecda70888ec3c58e6711b 100644 (file)
@@ -486,8 +486,7 @@ static bool rewriteToNumberLiteral(const ObjCMessageExpr *Msg,
     return false;
   NSAPI::NSNumberLiteralMethodKind MK = *MKOpt;
 
-  bool CallIsInteger = false, CallIsUnsigned = false;
-  bool CallIsLong = false, CallIsLongLong = false; 
+  bool CallIsUnsigned = false, CallIsLong = false, CallIsLongLong = false;
   bool CallIsFloating = false, CallIsDouble = false;
 
   switch (MK) {
@@ -504,19 +503,18 @@ static bool rewriteToNumberLiteral(const ObjCMessageExpr *Msg,
     CallIsUnsigned = true;
   case NSAPI::NSNumberWithInt:
   case NSAPI::NSNumberWithInteger:
-    CallIsInteger = true;
     break;
 
   case NSAPI::NSNumberWithUnsignedLong:
     CallIsUnsigned = true;
   case NSAPI::NSNumberWithLong:
-    CallIsInteger = true; CallIsLong = true;
+    CallIsLong = true;
     break;
 
   case NSAPI::NSNumberWithUnsignedLongLong:
     CallIsUnsigned = true;
   case NSAPI::NSNumberWithLongLong:
-    CallIsInteger = true; CallIsLongLong = true;
+    CallIsLongLong = true;
     break;
 
   case NSAPI::NSNumberWithDouble: