Skip to content

Commit f4cdb89

Browse files
[mlir] Remove unnecessary casts (NFC) (#146465)
Note that encodeStringLiteralInto returns void.
1 parent 7622bf9 commit f4cdb89

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mlir/unittests/Dialect/SPIRV/DeserializationTest.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -188,11 +188,11 @@ TEST_F(DeserializationTest, OpMemberNameSuccess) {
188188
std::swap(typeDecl, binary);
189189

190190
SmallVector<uint32_t, 5> operands1 = {structType, 0};
191-
(void)spirv::encodeStringLiteralInto(operands1, "i1");
191+
spirv::encodeStringLiteralInto(operands1, "i1");
192192
addInstruction(spirv::Opcode::OpMemberName, operands1);
193193

194194
SmallVector<uint32_t, 5> operands2 = {structType, 1};
195-
(void)spirv::encodeStringLiteralInto(operands2, "i2");
195+
spirv::encodeStringLiteralInto(operands2, "i2");
196196
addInstruction(spirv::Opcode::OpMemberName, operands2);
197197

198198
binary.append(typeDecl.begin(), typeDecl.end());
@@ -227,7 +227,7 @@ TEST_F(DeserializationTest, OpMemberNameExcessOperands) {
227227
std::swap(typeDecl, binary);
228228

229229
SmallVector<uint32_t, 5> operands = {structType, 0};
230-
(void)spirv::encodeStringLiteralInto(operands, "int32");
230+
spirv::encodeStringLiteralInto(operands, "int32");
231231
operands.push_back(42);
232232
addInstruction(spirv::Opcode::OpMemberName, operands);
233233

0 commit comments

Comments
 (0)