[llvm] r290995 - Remove dead variable Len.
Eric Christopher via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 4 11:47:13 PST 2017
Author: echristo
Date: Wed Jan 4 13:47:10 2017
New Revision: 290995
URL: http://llvm.org/viewvc/llvm-project?rev=290995&view=rev
Log:
Remove dead variable Len.
Fixes PR31528
Modified:
llvm/trunk/lib/Support/NativeFormatting.cpp
Modified: llvm/trunk/lib/Support/NativeFormatting.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/NativeFormatting.cpp?rev=290995&r1=290994&r2=290995&view=diff
==============================================================================
--- llvm/trunk/lib/Support/NativeFormatting.cpp (original)
+++ llvm/trunk/lib/Support/NativeFormatting.cpp Wed Jan 4 13:47:10 2017
@@ -239,10 +239,7 @@ void llvm::write_double(raw_ostream &S,
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 << '%';
More information about the llvm-commits
mailing list