[llvm] 13809b3 - [SandboxIR] Fix failing unittest introduced by 51039101cf32
Vasileios Porpodas via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 25 16:40:42 PDT 2024
Author: Vasileios Porpodas
Date: 2024-09-25T16:38:46-07:00
New Revision: 13809b3d95924d691db53e62182d8ad46b0e08ec
URL: https://github.com/llvm/llvm-project/commit/13809b3d95924d691db53e62182d8ad46b0e08ec
DIFF: https://github.com/llvm/llvm-project/commit/13809b3d95924d691db53e62182d8ad46b0e08ec.diff
LOG: [SandboxIR] Fix failing unittest introduced by 51039101cf32
Added:
Modified:
llvm/unittests/SandboxIR/SandboxIRTest.cpp
Removed:
################################################################################
diff --git a/llvm/unittests/SandboxIR/SandboxIRTest.cpp b/llvm/unittests/SandboxIR/SandboxIRTest.cpp
index aed91c88943811..964b81fead67e4 100644
--- a/llvm/unittests/SandboxIR/SandboxIRTest.cpp
+++ b/llvm/unittests/SandboxIR/SandboxIRTest.cpp
@@ -1868,13 +1868,13 @@ define void @foo(i8 %v1, ptr %ptr) {
EXPECT_EQ(Ret->getOpcode(), sandboxir::Instruction::Opcode::Ret);
// Check getOpcodeName().
- EXPECT_EQ(I0->getOpcodeName(), "Add");
- EXPECT_EQ(I1->getOpcodeName(), "Sub");
- EXPECT_EQ(Ret->getOpcodeName(), "Ret");
+ EXPECT_STREQ(I0->getOpcodeName(), "Add");
+ EXPECT_STREQ(I1->getOpcodeName(), "Sub");
+ EXPECT_STREQ(Ret->getOpcodeName(), "Ret");
- EXPECT_EQ(sandboxir::Instruction::getOpcodeName(
- sandboxir::Instruction::Opcode::Alloca),
- "Alloca");
+ EXPECT_STREQ(sandboxir::Instruction::getOpcodeName(
+ sandboxir::Instruction::Opcode::Alloca),
+ "Alloca");
// Check moveBefore(I).
I1->moveBefore(I0);
More information about the llvm-commits
mailing list