OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b868610
)
Remove dead variable Len.
author
Eric Christopher
<echristo@gmail.com>
Wed, 4 Jan 2017 19:47:10 +0000
(19:47 +0000)
committer
Eric Christopher
<echristo@gmail.com>
Wed, 4 Jan 2017 19:47:10 +0000
(19:47 +0000)
Fixes PR31528
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290995
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/NativeFormatting.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/NativeFormatting.cpp
b/lib/Support/NativeFormatting.cpp
index
bb86891
..
b951a88
100644
(file)
--- a/
lib/Support/NativeFormatting.cpp
+++ b/
lib/Support/NativeFormatting.cpp
@@
-239,10
+239,7
@@
void llvm::write_double(raw_ostream &S, double N, FloatStyle Style,
N *= 100.0;
char Buf[32];
- unsigned Len;
- Len = format(Spec.c_str(), N).snprint(Buf, sizeof(Buf));
- if (Style == FloatStyle::Percent)
- ++Len;
+ format(Spec.c_str(), N).snprint(Buf, sizeof(Buf));
S << Buf;
if (Style == FloatStyle::Percent)
S << '%';