Skip to content

Commit c15806a

Browse files
[SPIRV] Avoid repeated hash lookups (NFC) (#126854)
1 parent 2e8f89f commit c15806a

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)