Skip to content

Commit 6048ecb

Browse files
committed
fixup! Use errorToBool
1 parent a43d447 commit 6048ecb

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

llvm/unittests/tools/llvm-exegesis/RISCV/SnippetGeneratorTest.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,8 @@ TEST_F(RISCVSerialSnippetGeneratorTest,
8989
const Instruction &Instr = State.getIC().getInstr(RISCV::XOR);
9090
auto AllRegisters = State.getRATC().emptyRegisters();
9191
AllRegisters.flip();
92-
auto Error =
93-
Generator.generateCodeTemplates(&Instr, AllRegisters).takeError();
94-
EXPECT_TRUE((bool)Error);
95-
consumeError(std::move(Error));
92+
EXPECT_TRUE(errorToBool(
93+
Generator.generateCodeTemplates(&Instr, AllRegisters).takeError()));
9694
}
9795

9896
TEST_F(RISCVParallelSnippetGeneratorTest, MemoryUse) {

0 commit comments

Comments
 (0)