aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/CodeGen/MachineInstrTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests/CodeGen/MachineInstrTest.cpp')
-rw-r--r--llvm/unittests/CodeGen/MachineInstrTest.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/unittests/CodeGen/MachineInstrTest.cpp b/llvm/unittests/CodeGen/MachineInstrTest.cpp
index 0841cd3..7c45d97 100644
--- a/llvm/unittests/CodeGen/MachineInstrTest.cpp
+++ b/llvm/unittests/CodeGen/MachineInstrTest.cpp
@@ -222,9 +222,8 @@ TEST(MachineInstrPrintingTest, DebugLocPrinting) {
MI->print(OS, /*IsStandalone*/true, /*SkipOpers*/false, /*SkipDebugLoc*/false,
/*AddNewLine*/false);
ASSERT_TRUE(
- StringRef(OS.str()).startswith("$noreg = UNKNOWN debug-location "));
- ASSERT_TRUE(
- StringRef(OS.str()).endswith("filename:1:5"));
+ StringRef(OS.str()).starts_with("$noreg = UNKNOWN debug-location "));
+ ASSERT_TRUE(StringRef(OS.str()).ends_with("filename:1:5"));
}
TEST(MachineInstrSpan, DistanceBegin) {