From 0192e97911be5102b69be5148ca1e992748cfe3d Mon Sep 17 00:00:00 2001 From: Eric Christopher Date: Wed, 4 Jan 2017 19:47:10 +0000 Subject: Remove dead variable Len. Fixes PR31528 llvm-svn: 290995 --- llvm/lib/Support/NativeFormatting.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'llvm/lib/Support/NativeFormatting.cpp') diff --git a/llvm/lib/Support/NativeFormatting.cpp b/llvm/lib/Support/NativeFormatting.cpp index bb868914109..b951a88a38d 100644 --- a/llvm/lib/Support/NativeFormatting.cpp +++ b/llvm/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 << '%'; -- cgit v1.2.3