diff options
Diffstat (limited to 'llvm/unittests/CodeGen/MachineInstrTest.cpp')
-rw-r--r-- | llvm/unittests/CodeGen/MachineInstrTest.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/unittests/CodeGen/MachineInstrTest.cpp b/llvm/unittests/CodeGen/MachineInstrTest.cpp index af25acb..d1546cf 100644 --- a/llvm/unittests/CodeGen/MachineInstrTest.cpp +++ b/llvm/unittests/CodeGen/MachineInstrTest.cpp @@ -223,9 +223,8 @@ TEST(MachineInstrPrintingTest, DebugLocPrinting) { raw_string_ostream OS(str); MI->print(OS, /*IsStandalone*/true, /*SkipOpers*/false, /*SkipDebugLoc*/false, /*AddNewLine*/false); - ASSERT_TRUE( - StringRef(OS.str()).starts_with("$noreg = UNKNOWN debug-location ")); - ASSERT_TRUE(StringRef(OS.str()).ends_with("filename:1:5")); + ASSERT_TRUE(StringRef(str).starts_with("$noreg = UNKNOWN debug-location ")); + ASSERT_TRUE(StringRef(str).ends_with("filename:1:5")); } TEST(MachineInstrSpan, DistanceBegin) { |