[cfe-commits] r152633 - /cfe/trunk/lib/Edit/RewriteObjCFoundationAPI.cpp

Benjamin Kramer benny.kra at googlemail.com
Tue Mar 13 10:05:43 PDT 2012


Author: d0k
Date: Tue Mar 13 12:05:43 2012
New Revision: 152633

URL: http://llvm.org/viewvc/llvm-project?rev=152633&view=rev
Log:
Remove unused-but-set variable.

Modified:
    cfe/trunk/lib/Edit/RewriteObjCFoundationAPI.cpp

Modified: cfe/trunk/lib/Edit/RewriteObjCFoundationAPI.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Edit/RewriteObjCFoundationAPI.cpp?rev=152633&r1=152632&r2=152633&view=diff
==============================================================================
--- cfe/trunk/lib/Edit/RewriteObjCFoundationAPI.cpp (original)
+++ cfe/trunk/lib/Edit/RewriteObjCFoundationAPI.cpp Tue Mar 13 12:05:43 2012
@@ -486,8 +486,7 @@
     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 @@
     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:





More information about the cfe-commits mailing list