diff options
| author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2017-05-24 10:38:09 +0000 |
|---|---|---|
| committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2017-05-24 10:38:09 +0000 |
| commit | 2f5139340e8cf54899ea1b0e15a57174256e9a61 (patch) | |
| tree | 1a8e9fe51176f2708ad371d1b08f3133744b296f /clang/lib/Lex | |
| parent | d211fe7c26ae6ea98c309611a85f1def97bd0a64 (diff) | |
| download | bcm5719-llvm-2f5139340e8cf54899ea1b0e15a57174256e9a61.tar.gz bcm5719-llvm-2f5139340e8cf54899ea1b0e15a57174256e9a61.zip | |
Fix 'set but not used' [-Wunused-but-set-variable] warning
llvm-svn: 303734
Diffstat (limited to 'clang/lib/Lex')
| -rw-r--r-- | clang/lib/Lex/LiteralSupport.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Lex/LiteralSupport.cpp b/clang/lib/Lex/LiteralSupport.cpp index 91993b1e41f..1fead55e80f 100644 --- a/clang/lib/Lex/LiteralSupport.cpp +++ b/clang/lib/Lex/LiteralSupport.cpp @@ -563,7 +563,6 @@ NumericLiteralParser::NumericLiteralParser(StringRef TokSpelling, // Parse the suffix. At this point we can classify whether we have an FP or // integer constant. bool isFPConstant = isFloatingLiteral(); - const char *ImaginarySuffixLoc = nullptr; // Loop over all of the characters of the suffix. If we see something bad, // we break out of the loop. @@ -657,7 +656,6 @@ NumericLiteralParser::NumericLiteralParser(StringRef TokSpelling, case 'J': if (isImaginary) break; // Cannot be repeated. isImaginary = true; - ImaginarySuffixLoc = s; continue; // Success. } // If we reached here, there was an error or a ud-suffix. |

