diff options
author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2017-09-20 02:31:57 +0000 |
---|---|---|
committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2017-09-20 02:31:57 +0000 |
commit | 09613b122e011731eb2917ac0106c0ea05e3f556 (patch) | |
tree | 70f4ff3f790cf5daaef6205262760a8346b371a3 /llvm/lib/CodeGen/MachineTraceMetrics.cpp | |
parent | b207d12456782bd04eb06ba8f3d89eb4008d81f6 (diff) | |
download | llvm-09613b122e011731eb2917ac0106c0ea05e3f556.zip llvm-09613b122e011731eb2917ac0106c0ea05e3f556.tar.gz llvm-09613b122e011731eb2917ac0106c0ea05e3f556.tar.bz2 |
Tighten the invariants around LoopBase::invalidate
Summary:
With this change:
- Methods in LoopBase trip an assert if the receiver has been invalidated
- LoopBase::clear frees up the memory held the LoopBase instance
This change also shuffles things around as necessary to work with this stricter invariant.
Reviewers: chandlerc
Subscribers: mehdi_amini, mcrosier, llvm-commits
Differential Revision: https://reviews.llvm.org/D38055
llvm-svn: 313708
Diffstat (limited to 'llvm/lib/CodeGen/MachineTraceMetrics.cpp')
0 files changed, 0 insertions, 0 deletions