| commit | d6f8e4b03cb1f33294cfa4da8d1def26ad884e15 | [log] [tgz] |
|---|---|---|
| author | Duncan P. N. Exon Smith <dexonsmith@apple.com> | Thu Dec 11 21:51:37 2014 +0000 |
| committer | Duncan P. N. Exon Smith <dexonsmith@apple.com> | Thu Dec 11 21:51:37 2014 +0000 |
| tree | 6df695eba98912d7fe09cc3c55839ba0d4498f1e | |
| parent | 63eb6bf6233dded6c91ac50bd2ec76e054aadba3 [diff] |
CodeGen: Stop using LeakDetector for MachineInstr Since `MachineInstr` is required to have a trivial destructor, it cannot remove itself from `LeakDetection`. Remove the calls. As it happens, this requirement is because `MachineFunction` allocates all `MachineInstr`s in a custom allocator; when the `MachineFunction` is destroyed they're dropped of the edge. There's no benefit to detecting leaks. llvm-svn: 224061