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 1fba186 commit 7fb8285Copy full SHA for 7fb8285
llvm/lib/Target/PowerPC/PPCRegisterInfo.h
@@ -65,9 +65,10 @@ class PPCRegisterInfo : public PPCGenRegisterInfo {
65
/// for a given imm form load/store opcode \p ImmFormOpcode.
66
/// FIXME: move this to PPCInstrInfo class.
67
unsigned getMappedIdxOpcForImmOpc(unsigned ImmOpcode) const {
68
- if (!ImmToIdxMap.count(ImmOpcode))
+ auto It = ImmToIdxMap.find(ImmOpcode);
69
+ if (It == ImmToIdxMap.end())
70
return PPC::INSTRUCTION_LIST_END;
- return ImmToIdxMap.find(ImmOpcode)->second;
71
+ return It->second;
72
}
73
74
/// getPointerRegClass - Return the register class to use to hold pointers.
0 commit comments