aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/IR/InstructionsTest.cpp
diff options
context:
space:
mode:
authorJeremy Morse <jeremy.morse@sony.com>2025-07-15 15:34:10 +0100
committerGitHub <noreply@github.com>2025-07-15 15:34:10 +0100
commit57a5f9c47e063701ac7d13a5efd993e839e148eb (patch)
treee0b6bac122d092b31be4f204c5998a8add1accc3 /llvm/unittests/IR/InstructionsTest.cpp
parent8db92a7d99f2b1a64d34c2fe3c295e555caa35f2 (diff)
downloadllvm-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.cpp4
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) {