projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d74472e
)
- Fix bug in LoopInfo causing ParentLoop to be garbage
author
Chris Lattner
<sabre@nondot.org>
Thu, 26 Sep 2002 16:15:19 +0000
(16:15 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 26 Sep 2002 16:15:19 +0000
(16:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3940
91177308
-0d34-0410-b5e6-
96231b3b80d8
include/llvm/Analysis/LoopInfo.h
patch
|
blob
|
history
diff --git
a/include/llvm/Analysis/LoopInfo.h
b/include/llvm/Analysis/LoopInfo.h
index 4e572c7e77879a0cfdb6ba84356970824ba03f3b..6c531ac03d3db365ba405712fa2d7d5de2f0d116 100644
(file)
--- a/
include/llvm/Analysis/LoopInfo.h
+++ b/
include/llvm/Analysis/LoopInfo.h
@@
-69,7
+69,9
@@
public:
void print(std::ostream &O) const;
private:
friend class LoopInfo;
- inline Loop(BasicBlock *BB) { Blocks.push_back(BB); LoopDepth = 0; }
+ inline Loop(BasicBlock *BB) : ParentLoop(0) {
+ Blocks.push_back(BB); LoopDepth = 0;
+ }
~Loop() {
for (unsigned i = 0, e = SubLoops.size(); i != e; ++i)
delete SubLoops[i];