diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2012-03-13 17:05:43 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2012-03-13 17:05:43 +0000 |
commit | bea6c0a2e77a78e3d27ee44461613acdd1d8ee9c (patch) | |
tree | f4d124228e069de1e246fd73ccff4cd42fb3805a /lib/Edit/RewriteObjCFoundationAPI.cpp | |
parent | e3d175da72f9c29ae18ff8aae53b992402895b63 (diff) |
Remove unused-but-set variable.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152633 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Edit/RewriteObjCFoundationAPI.cpp')
-rw-r--r-- | lib/Edit/RewriteObjCFoundationAPI.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/Edit/RewriteObjCFoundationAPI.cpp b/lib/Edit/RewriteObjCFoundationAPI.cpp index 7cff6afeae..24a0db1875 100644 --- a/lib/Edit/RewriteObjCFoundationAPI.cpp +++ b/lib/Edit/RewriteObjCFoundationAPI.cpp @@ -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: |