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 | ece209afbcd204b436442cb3bacc42f09d7894bd (patch) | |
tree | b3a83ae66f2667ac376dbbb2c8b1bb55a2ac3157 /clang/lib/Edit | |
parent | 816dcd17771dd258f6f3eeb6dce9583499f439c4 (diff) | |
download | bcm5719-llvm-ece209afbcd204b436442cb3bacc42f09d7894bd.tar.gz bcm5719-llvm-ece209afbcd204b436442cb3bacc42f09d7894bd.zip |
Remove unused-but-set variable.
llvm-svn: 152633
Diffstat (limited to 'clang/lib/Edit')
-rw-r--r-- | clang/lib/Edit/RewriteObjCFoundationAPI.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/clang/lib/Edit/RewriteObjCFoundationAPI.cpp b/clang/lib/Edit/RewriteObjCFoundationAPI.cpp index 7cff6afeae2..24a0db18755 100644 --- a/clang/lib/Edit/RewriteObjCFoundationAPI.cpp +++ b/clang/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: |