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 fbc2d06 commit b9f9b3bCopy full SHA for b9f9b3b
llvm/lib/Target/SPIRV/SPIRVModuleAnalysis.h
@@ -169,9 +169,7 @@ struct ModuleAnalysisInfo {
169
170
MCRegister getFuncReg(const Function *F) {
171
assert(F && "Function is null");
172
- auto FuncPtrRegPair = FuncMap.find(F);
173
- return FuncPtrRegPair == FuncMap.end() ? MCRegister()
174
- : FuncPtrRegPair->second;
+ return FuncMap.lookup(F);
175
}
176
MCRegister getExtInstSetReg(unsigned SetNum) { return ExtInstSetMap[SetNum]; }
177
InstrList &getMSInstrs(unsigned MSType) { return MS[MSType]; }
0 commit comments