Skip to content

Commit b73f47f

Browse files
[SPIRV] Avoid repeated hash lookups (NFC)
1 parent 84e3c6f commit b73f47f

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)