diff options
| author | Daniel Sanders <daniel_l_sanders@apple.com> | 2020-01-08 20:02:37 -0800 |
|---|---|---|
| committer | Daniel Sanders <daniel_l_sanders@apple.com> | 2020-01-08 20:03:29 -0800 |
| commit | de3d0ee023cb14c06d5be01369ef8db4cbfa16b4 (patch) | |
| tree | 594ee1ef2dd12aa3ea19af99e24496f201fefbc1 /llvm/lib/CodeGen/SelectionDAG | |
| parent | 71d64f72f934631aa2f12b9542c23f74f256f494 (diff) | |
| download | bcm5719-llvm-de3d0ee023cb14c06d5be01369ef8db4cbfa16b4.tar.gz bcm5719-llvm-de3d0ee023cb14c06d5be01369ef8db4cbfa16b4.zip | |
Revert "Revert "[MIR] Target specific MIR formating and parsing""
There was an unguarded dereference of MF in a function that permitted
nullptr. Fixed
This reverts commit 71d64f72f934631aa2f12b9542c23f74f256f494.
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp index 6fd71393bf3..cbdcb93e60c 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGDumper.cpp @@ -480,7 +480,8 @@ static void printMemOperand(raw_ostream &OS, const MachineMemOperand &MMO, if (MF) MST.incorporateFunction(MF->getFunction()); SmallVector<StringRef, 0> SSNs; - MMO.print(OS, MST, SSNs, Ctx, MFI, TII); + MMO.print(OS, MST, SSNs, Ctx, MFI, TII, + MF ? MF->getTarget().getMIRFormatter() : nullptr); } static void printMemOperand(raw_ostream &OS, const MachineMemOperand &MMO, |

