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 2d7d74d commit e73d453Copy full SHA for e73d453
llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.h
@@ -255,11 +255,7 @@ class SPIRVGlobalRegistry {
255
256
// Add a record about forward function call.
257
void addForwardCall(const Function *F, MachineInstr *MI) {
258
- auto It = ForwardCalls.find(F);
259
- if (It == ForwardCalls.end())
260
- ForwardCalls[F] = {MI};
261
- else
262
- It->second.insert(MI);
+ ForwardCalls[F].insert(MI);
263
}
264
265
// Map a Function to the vector of machine instructions that represents
0 commit comments