mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 06:30:16 +00:00
- Fix bug in LoopInfo causing ParentLoop to be garbage
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3940 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d74472ed21
commit
de39b71455
@ -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];
|
||||
|
Loading…
x
Reference in New Issue
Block a user