We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa1556c commit 62cb401Copy full SHA for 62cb401
mlir/lib/Target/SPIRV/Serialization/SerializeOps.cpp
@@ -317,8 +317,7 @@ LogicalResult Serializer::processFuncOp(spirv::FuncOp op) {
317
// as keys. We have already serialized function arguments so we probably can
318
// remove them from the map as external function will not have any uses.
319
for (Value arg : op.getArguments())
320
- if (valueIDMap.count(arg))
321
- valueIDMap.erase(arg);
+ valueIDMap.erase(arg);
322
323
// Don't need to process the added block, there is nothing to process,
324
// the fake body was added just to get the arguments, remove the body,
0 commit comments