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 6c17380 commit 3083aeaCopy full SHA for 3083aea
llvm/lib/CodeGen/GlobalISel/LegacyLegalizerInfo.cpp
@@ -308,9 +308,10 @@ LegacyLegalizerInfo::findScalarLegalAction(const InstrAspect &Aspect) const {
308
ArrayRef<SizeAndActionsVec> Actions;
309
if (Aspect.Type.isPointer()) {
310
auto &PA = AddrSpace2PointerActions[OpcodeIdx];
311
- if (PA.find(Aspect.Type.getAddressSpace()) == PA.end())
+ auto It = PA.find(Aspect.Type.getAddressSpace());
312
+ if (It == PA.end())
313
return {NotFound, LLT()};
- Actions = PA.find(Aspect.Type.getAddressSpace())->second;
314
+ Actions = It->second;
315
} else {
316
Actions = ScalarActions[OpcodeIdx];
317
}
0 commit comments