mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 03:02:36 +01:00
Remove dead variable Len.
Fixes PR31528 llvm-svn: 290995
This commit is contained in:
parent
08b29b5d00
commit
d7188bbe74
@ -239,10 +239,7 @@ void llvm::write_double(raw_ostream &S, double N, FloatStyle Style,
|
|||||||
N *= 100.0;
|
N *= 100.0;
|
||||||
|
|
||||||
char Buf[32];
|
char Buf[32];
|
||||||
unsigned Len;
|
format(Spec.c_str(), N).snprint(Buf, sizeof(Buf));
|
||||||
Len = format(Spec.c_str(), N).snprint(Buf, sizeof(Buf));
|
|
||||||
if (Style == FloatStyle::Percent)
|
|
||||||
++Len;
|
|
||||||
S << Buf;
|
S << Buf;
|
||||||
if (Style == FloatStyle::Percent)
|
if (Style == FloatStyle::Percent)
|
||||||
S << '%';
|
S << '%';
|
||||||
|
Loading…
Reference in New Issue
Block a user