diff options
| author | Ted Kremenek <kremenek@apple.com> | 2011-01-23 17:05:06 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2011-01-23 17:05:06 +0000 |
| commit | 3c4408ceb65ec14ea4aaa3712e019a4a3ee72ea1 (patch) | |
| tree | f87755496a32a67d4b390eadbc9d38fc92d9c2fc /llvm/lib/Support/APFloat.cpp | |
| parent | 582a0999fbb43cafb824d0cf5deb0bd81448e47c (diff) | |
| download | bcm5719-llvm-3c4408ceb65ec14ea4aaa3712e019a4a3ee72ea1.tar.gz bcm5719-llvm-3c4408ceb65ec14ea4aaa3712e019a4a3ee72ea1.zip | |
Null initialize a few variables flagged by
clang's -Wuninitialized-experimental warning.
While these don't look like real bugs, clang's
-Wuninitialized-experimental analysis is stricter
than GCC's, and these fixes have the benefit
of being general nice cleanups.
llvm-svn: 124073
Diffstat (limited to 'llvm/lib/Support/APFloat.cpp')
| -rw-r--r-- | llvm/lib/Support/APFloat.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/APFloat.cpp b/llvm/lib/Support/APFloat.cpp index 0048ce57c2e..6d018afa3f6 100644 --- a/llvm/lib/Support/APFloat.cpp +++ b/llvm/lib/Support/APFloat.cpp @@ -175,7 +175,7 @@ totalExponent(StringRef::iterator p, StringRef::iterator end, { int unsignedExponent; bool negative, overflow; - int exponent; + int exponent = 0; assert(p != end && "Exponent has no digits"); |

