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/Analysis | |
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/Analysis')
-rw-r--r-- | llvm/lib/Analysis/ProfileInfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ProfileInfo.cpp b/llvm/lib/Analysis/ProfileInfo.cpp index 51dee2d13f0..36f211e858d 100644 --- a/llvm/lib/Analysis/ProfileInfo.cpp +++ b/llvm/lib/Analysis/ProfileInfo.cpp @@ -889,7 +889,7 @@ void ProfileInfoT<Function,BasicBlock>::repair(const Function *F) { FI = Unvisited.begin(), FE = Unvisited.end(); while(FI != FE && !FoundPath) { const BasicBlock *BB = *FI; ++FI; - const BasicBlock *Dest; + const BasicBlock *Dest = 0; Path P; bool BackEdgeFound = false; for (const_pred_iterator NBB = pred_begin(BB), End = pred_end(BB); |