summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/CodeGen/MachineOperandTest.cpp
diff options
context:
space:
mode:
authorDaniel Sanders <daniel_l_sanders@apple.com>2020-01-08 20:02:37 -0800
committerDaniel Sanders <daniel_l_sanders@apple.com>2020-01-08 20:03:29 -0800
commitde3d0ee023cb14c06d5be01369ef8db4cbfa16b4 (patch)
tree594ee1ef2dd12aa3ea19af99e24496f201fefbc1 /llvm/unittests/CodeGen/MachineOperandTest.cpp
parent71d64f72f934631aa2f12b9542c23f74f256f494 (diff)
downloadbcm5719-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/unittests/CodeGen/MachineOperandTest.cpp')
-rw-r--r--llvm/unittests/CodeGen/MachineOperandTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/unittests/CodeGen/MachineOperandTest.cpp b/llvm/unittests/CodeGen/MachineOperandTest.cpp
index faa471f2260..7e60fab2815 100644
--- a/llvm/unittests/CodeGen/MachineOperandTest.cpp
+++ b/llvm/unittests/CodeGen/MachineOperandTest.cpp
@@ -310,7 +310,7 @@ TEST(MachineOperandTest, PrintMetadata) {
std::string str;
// Print a MachineOperand containing a metadata node.
raw_string_ostream OS(str);
- MO.print(OS, MST, LLT{}, /*PrintDef=*/false, /*IsStandalone=*/false,
+ MO.print(OS, MST, LLT{}, /*OpIdx*/~0U, /*PrintDef=*/false, /*IsStandalone=*/false,
/*ShouldPrintRegisterTies=*/false, 0, /*TRI=*/nullptr,
/*IntrinsicInfo=*/nullptr);
ASSERT_TRUE(OS.str() == "!0");
OpenPOWER on IntegriCloud