Skip to content

Commit 62cb401

Browse files
committed
Address feedback
1 parent fa1556c commit 62cb401

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mlir/lib/Target/SPIRV/Serialization/SerializeOps.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -317,8 +317,7 @@ LogicalResult Serializer::processFuncOp(spirv::FuncOp op) {
317317
// as keys. We have already serialized function arguments so we probably can
318318
// remove them from the map as external function will not have any uses.
319319
for (Value arg : op.getArguments())
320-
if (valueIDMap.count(arg))
321-
valueIDMap.erase(arg);
320+
valueIDMap.erase(arg);
322321

323322
// Don't need to process the added block, there is nothing to process,
324323
// the fake body was added just to get the arguments, remove the body,

0 commit comments

Comments
 (0)