Skip to content

Commit 43d47d1

Browse files
kazutakahiratasivan-shani
authored andcommitted
[SPIRV] Avoid repeated hash lookups (NFC) (llvm#126854)
1 parent e41657e commit 43d47d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class SPIRVEmitIntrinsics
9393
void eraseTodoType(Value *Op) {
9494
auto It = TodoType.find(Op);
9595
if (It != TodoType.end() && It->second) {
96-
TodoType[Op] = false;
96+
It->second = false;
9797
--TodoTypeSz;
9898
}
9999
}

0 commit comments

Comments
 (0)