projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5883989
)
Fix clang -Wsometimes-uninitialized warning in SCEV code
author
Reid Kleckner
<rnk@google.com>
Mon, 13 Nov 2017 18:43:11 +0000
(18:43 +0000)
committer
Reid Kleckner
<rnk@google.com>
Mon, 13 Nov 2017 18:43:11 +0000
(18:43 +0000)
I don't believe this was a problem in practice, as it's likely that the
boolean wasn't checked unless the backend condition was non-null.
llvm-svn: 318073
llvm/lib/Analysis/ScalarEvolution.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Analysis/ScalarEvolution.cpp
b/llvm/lib/Analysis/ScalarEvolution.cpp
index
7795a33
..
a643db8
100644
(file)
--- a/
llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/
llvm/lib/Analysis/ScalarEvolution.cpp
@@
-4088,7
+4088,7
@@
class SCEVBackedgeConditionFolder
public:
static const SCEV *rewrite(const SCEV *S, const Loop *L,
ScalarEvolution &SE) {
- bool IsPosBECond;
+ bool IsPosBECond
= false
;
Value *BECond = nullptr;
if (BasicBlock *Latch = L->getLoopLatch()) {
BranchInst *BI = dyn_cast<BranchInst>(Latch->getTerminator());