commit | 1e9fd7f4d78a11a3fd92336545746938b665691c | [log] [tgz] |
---|---|---|
author | Chris Lattner <clattner@google.com> | Thu Jul 26 08:56:26 2018 -0700 |
committer | jpienaar <jpienaar@google.com> | Fri Mar 29 12:44:56 2019 -0700 |
tree | b46016e772f8e4334532eb33e804c97e48259543 | |
parent | 0dd940c2767bc2aa70b1ad4dee89d876f9c2c04d [diff] [blame] |
Implement the groundwork for predecessor/successor iterators on basic blocks. Give BasicBlock a use/def list, making references to them in TerminatorInst's into a type that maintains the list. PiperOrigin-RevId: 206166388
diff --git a/lib/IR/Function.cpp b/lib/IR/Function.cpp index 8476b06..b06be4d 100644 --- a/lib/IR/Function.cpp +++ b/lib/IR/Function.cpp
@@ -108,6 +108,7 @@ for (auto &bb : *this) { for (auto &inst : bb) inst.dropAllReferences(); + bb.getTerminator()->dropAllReferences(); } }