1
0
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:
Eric Christopher 2017-01-04 19:47:10 +00:00
parent 08b29b5d00
commit d7188bbe74

View File

@ -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 << '%';