projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d211fe7
)
Fix 'set but not used' [-Wunused-but-set-variable] warning
author
Simon Pilgrim
<llvm-dev@redking.me.uk>
Wed, 24 May 2017 10:38:09 +0000
(10:38 +0000)
committer
Simon Pilgrim
<llvm-dev@redking.me.uk>
Wed, 24 May 2017 10:38:09 +0000
(10:38 +0000)
llvm-svn: 303734
clang/lib/Lex/LiteralSupport.cpp
patch
|
blob
|
history
diff --git
a/clang/lib/Lex/LiteralSupport.cpp
b/clang/lib/Lex/LiteralSupport.cpp
index
91993b1
..
1fead55
100644
(file)
--- 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.