diff options
author | Jeremy Morse <jeremy.morse@sony.com> | 2025-07-15 15:34:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-07-15 15:34:10 +0100 |
commit | 57a5f9c47e063701ac7d13a5efd993e839e148eb (patch) | |
tree | e0b6bac122d092b31be4f204c5998a8add1accc3 /llvm/unittests/IR/InstructionsTest.cpp | |
parent | 8db92a7d99f2b1a64d34c2fe3c295e555caa35f2 (diff) | |
download | llvm-57a5f9c47e063701ac7d13a5efd993e839e148eb.zip llvm-57a5f9c47e063701ac7d13a5efd993e839e148eb.tar.gz llvm-57a5f9c47e063701ac7d13a5efd993e839e148eb.tar.bz2 |
[DebugInfo][RemoveDIs] Suppress getNextNonDebugInfoInstruction (#144383)
There are no longer debug-info instructions, thus we don't need this
skipping. Horray!
Diffstat (limited to 'llvm/unittests/IR/InstructionsTest.cpp')
-rw-r--r-- | llvm/unittests/IR/InstructionsTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/IR/InstructionsTest.cpp b/llvm/unittests/IR/InstructionsTest.cpp index 126db4d..fd8838e 100644 --- a/llvm/unittests/IR/InstructionsTest.cpp +++ b/llvm/unittests/IR/InstructionsTest.cpp @@ -1482,11 +1482,11 @@ TEST(InstructionsTest, SkipDebug) { // The first non-debug instruction is the terminator. auto *Term = BB.getTerminator(); - EXPECT_EQ(Term, BB.begin()->getNextNonDebugInstruction()); + EXPECT_EQ(Term, BB.begin()->getNextNode()); EXPECT_EQ(Term->getIterator(), skipDebugIntrinsics(BB.begin())); // After the terminator, there are no non-debug instructions. - EXPECT_EQ(nullptr, Term->getNextNonDebugInstruction()); + EXPECT_EQ(nullptr, Term->getNextNode()); } TEST(InstructionsTest, PhiMightNotBeFPMathOperator) { |